Skip to content

Commit 8dfcc18

Browse files
ci: replace unmaintained release actions with maintained alternatives (#35)
- Replace archived actions/create-release@v1 and korniltsev/actions-upload-release-asset fork with softprops/action-gh-release@v2.5.0, which handles both release creation and asset upload in one step - Replace robinraju/release-downloader with actions/upload-artifact + actions/download-artifact to pass build artifacts between jobs without a release roundtrip - Update actions/checkout and actions/setup-python to pinned SHAs matching build.yml Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 07df073 commit 8dfcc18

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,28 @@ jobs:
2121
run: pip install build
2222
- name: Build wheel and sdist
2323
run: python -m build --sdist --wheel
24-
- name: Create GitHub release
25-
id: create_release
26-
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Upload dist as workflow artifact
25+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
26+
with:
27+
name: dist
28+
path: dist/*
29+
- name: Create GitHub release and upload release assets
30+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
2931
with:
30-
tag_name: ${{ github.ref }}
31-
release_name: Release ${{ github.ref }}
32-
draft: false
33-
prerelease: false
34-
- name: Upload release artifacts
35-
uses: korniltsev/actions-upload-release-asset@a7f1a48a96ff80f206fd26bdbfcf81539d44fa5e # TODO(korniltsev): get rid of this fork
32+
files: dist/*
3633
env:
3734
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
with:
39-
upload_url: ${{ steps.create_release.outputs.upload_url }}
40-
asset_path: "dist/*"
4135
publish:
4236
needs: release
4337
runs-on: ubuntu-x64
4438
permissions:
4539
id-token: write
4640
steps:
47-
- uses: robinraju/release-downloader@ed86e52bc497d1185844fc28454c5999aaed2fa5 # v1.4
48-
with:
49-
tag: ${{ github.ref_name }}
50-
fileName: "*"
51-
tarBall: false
52-
zipBall: false
53-
out-file-path: "dist"
54-
token: ${{ secrets.GITHUB_TOKEN }}
41+
- name: Download dist artifact
42+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
43+
with:
44+
name: dist
45+
path: dist
5546
- uses: grafana/shared-workflows/actions/get-vault-secrets@c2f1df59dba624b3fd509e5181aa8da5217120c0
5647
with:
5748
vault_instance: dev

0 commit comments

Comments
 (0)