Skip to content

Commit 22ac485

Browse files
authored
Merge pull request #313 from algorandfoundation/ci/harden-workflows-cleanup-alpha
ci: pin action SHAs to latest, fix devportal docs and retire alpha channel
2 parents 50f368c + 3bb7f12 commit 22ac485

8 files changed

Lines changed: 22 additions & 42 deletions

File tree

.github/actions/publish-docs/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ runs:
99
with:
1010
install-algokit: "false"
1111

12-
- name: Set up Node.js 22
13-
uses: actions/setup-node@v4
12+
- name: Set up Node.js 24
13+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
1414
with:
15-
node-version: "22"
15+
node-version: "24.x"
1616

17-
- uses: pnpm/action-setup@v4
17+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
1818
with:
1919
package_json_file: docs/package.json
2020

.github/workflows/build-python.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
steps:
1313
- name: Checkout source code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1515

1616
- name: Setup Python environment
1717
uses: algorandfoundation/algokit-shared-config/.github/actions/setup-algokit-python@main
@@ -90,15 +90,15 @@ jobs:
9090
9191
- name: pytest coverage comment - using Python 3.10 on ubuntu-latest
9292
if: matrix.python == '3.10' && matrix.os == 'ubuntu-latest'
93-
uses: MishaKav/pytest-coverage-comment@main
93+
uses: MishaKav/pytest-coverage-comment@dd5b80bde6d16941f336518e92929e89069d8451 # v1.7.2
9494
continue-on-error: true # forks fail to add a comment, so continue any way
9595
with:
9696
pytest-coverage-path: ./pytest-coverage.txt
9797
junitxml-path: ./pytest-junit.xml
9898

9999
- name: Upload test results and coverage artifacts
100100
if: always()
101-
uses: actions/upload-artifact@v4
101+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
102102
with:
103103
name: test-results-python-${{ matrix.python }}
104104
path: pytest-junit.xml

.github/workflows/cd.yaml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- alpha
87
paths-ignore:
98
- ".github/**"
109
workflow_dispatch:
@@ -45,13 +44,13 @@ jobs:
4544

4645
steps:
4746
- name: Generate bot token
48-
uses: actions/create-github-app-token@v1
47+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
4948
id: app_token
5049
with:
5150
app-id: ${{ secrets.BOT_ID }}
5251
private-key: ${{ secrets.BOT_SK }}
5352

54-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5554
with:
5655
# Fetch entire repository history so we can determine version number from it
5756
fetch-depth: 0
@@ -70,15 +69,6 @@ jobs:
7069
- name: Set Git user as GitHub actions
7170
run: git config --global user.email "179917785+engineering-ci[bot]@users.noreply.github.com" && git config --global user.name "engineering-ci[bot]"
7271

73-
- name: Create Continuous Deployment - Alpha
74-
id: release-alpha
75-
if: steps.get_branch.outputs.branch == 'alpha'
76-
env:
77-
GH_TOKEN: ${{ steps.app_token.outputs.token }}
78-
run: |
79-
uv run semantic-release -v version --as-prerelease --prerelease-token alpha
80-
uv run semantic-release publish
81-
8272
- name: Create Continuous Deployment - Beta (non-prod)
8373
id: release-beta
8474
if: steps.get_branch.outputs.branch == 'main' && !inputs.production_release
@@ -99,10 +89,9 @@ jobs:
9989
10090
- name: Publish package distributions to PyPI
10191
if: |
102-
(steps.release-alpha.outputs.released == 'true') ||
10392
(steps.release-beta.outputs.released == 'true') ||
10493
(steps.release-prod.outputs.released == 'true')
105-
uses: pypa/gh-action-pypi-publish@release/v1
94+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
10695
with:
10796
verbose: true
10897

@@ -123,16 +112,16 @@ jobs:
123112
url: ${{ steps.deployment.outputs.page_url }}
124113
steps:
125114
- name: Checkout code
126-
uses: actions/checkout@v4
115+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
127116

128117
- name: Build documentation
129118
uses: ./.github/actions/publish-docs
130119

131120
- name: Upload to GitHub Pages
132-
uses: actions/upload-pages-artifact@v3
121+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
133122
with:
134123
path: docs/dist
135124

136125
- name: Deploy to GitHub Pages
137126
id: deployment
138-
uses: actions/deploy-pages@v4
127+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5

.github/workflows/check-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: "ubuntu-latest"
99
steps:
1010
- name: Checkout source code
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1212

1313
- name: Setup Python environment
1414
uses: algorandfoundation/algokit-shared-config/.github/actions/setup-algokit-python@main

.github/workflows/check-python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: "ubuntu-latest"
99
steps:
1010
- name: Checkout source code
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1212

1313
- name: Setup Python environment
1414
uses: algorandfoundation/algokit-shared-config/.github/actions/setup-algokit-python@main

.github/workflows/publish-devportal-docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish DevPortal Docs
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ci/add-publish-to-devportal-workflow] # change to decoupling, then main when ready
6+
branches: [main]
77
tags: ['v*']
88

99
permissions:
@@ -13,13 +13,13 @@ jobs:
1313
publish-docs:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1717

18-
- uses: actions/setup-node@v6
18+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
1919
with:
20-
node-version: 22
20+
node-version: 24.x
2121

22-
- uses: pnpm/action-setup@v4
22+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
2323
with:
2424
package_json_file: docs/package.json
2525

@@ -32,6 +32,6 @@ jobs:
3232
run: uv run poe docs-api
3333

3434
- name: Publish DevPortal Docs
35-
uses: algorandfoundation/devportal/.github/actions/publish-devportal-docs@ci/update-publish-devportal-docs-workflow
35+
uses: algorandfoundation/devportal/.github/actions/publish-devportal-docs@release/ak-v4
3636
with:
3737
docs-dir: docs

.github/workflows/verify-examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout source code
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1111

1212
- name: Setup Python environment
1313
uses: algorandfoundation/algokit-shared-config/.github/actions/setup-algokit-python@main

pyproject.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,6 @@ sequence = [
289289
]
290290
help = "Preview current and next prerelease version"
291291

292-
[tool.poe.tasks.release-dry-run-alpha]
293-
shell = "semantic-release --noop version --as-prerelease --prerelease-token alpha"
294-
help = "Dry-run alpha release (no changes made)"
295-
296292
[tool.poe.tasks.release-dry-run-beta]
297293
shell = "semantic-release --noop version --as-prerelease --prerelease-token beta"
298294
help = "Dry-run beta release (no changes made)"
@@ -361,11 +357,6 @@ match = "main"
361357
prerelease_token = "beta"
362358
prerelease = false
363359

364-
[tool.semantic_release.branches.alpha]
365-
match = "alpha"
366-
prerelease_token = "alpha"
367-
prerelease = true
368-
369360
[tool.semantic_release.commit_parser_options]
370361
allowed_tags = [
371362
"build",

0 commit comments

Comments
 (0)