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
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
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
0 commit comments