Skip to content

Commit f255524

Browse files
ilyazubCopilot
andcommitted
Update GitHub Actions to 2026 latest, fix release idempotency
- Bump setup-python v5 → v6, upload-artifact v4 → v7, download-artifact v4 → v8, ci.yml checkout v4 → v6 - gh release create falls back to gh release upload --clobber on re-runs so partial failures can be retried Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ed4880e commit f255524

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323

2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v6
2020

21-
- uses: actions/setup-python@v5
21+
- uses: actions/setup-python@v6
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@v6
4545

46-
- uses: actions/setup-python@v5
46+
- uses: actions/setup-python@v6
4747
with:
4848
python-version: "3.13"
4949

@@ -52,7 +52,7 @@ jobs:
5252
pip install build
5353
python -m build
5454
55-
- uses: actions/upload-artifact@v4
55+
- uses: actions/upload-artifact@v7
5656
with:
5757
name: dist
5858
path: dist/
@@ -66,20 +66,22 @@ jobs:
6666
contents: write
6767
packages: write
6868
steps:
69-
- uses: actions/download-artifact@v4
69+
- uses: actions/download-artifact@v8
7070
with:
7171
name: dist
7272
path: dist/
7373

74-
- uses: actions/setup-python@v5
74+
- uses: actions/setup-python@v6
7575
with:
7676
python-version: "3.13"
7777

7878
- name: Create GitHub Release
7979
env:
8080
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8181
GH_REPO: ${{ github.repository }}
82-
run: gh release create ${{ github.ref_name }} dist/* --generate-notes
82+
run: |
83+
gh release create ${{ github.ref_name }} dist/* --generate-notes \
84+
|| gh release upload ${{ github.ref_name }} dist/* --clobber
8385
8486
- name: Install twine
8587
run: pip install --upgrade pip twine
@@ -101,7 +103,7 @@ jobs:
101103
needs: [publish]
102104
runs-on: ubuntu-latest
103105
steps:
104-
- uses: actions/setup-python@v5
106+
- uses: actions/setup-python@v6
105107
with:
106108
python-version: "3.13"
107109

0 commit comments

Comments
 (0)