Skip to content

Commit 02c8580

Browse files
authored
Merge pull request #6 from xscriptor/fix/workflow
update workflow fixing releases publish
2 parents e50285c + 0bad428 commit 02c8580

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
- name: Build
2929
run: cargo build --release --locked
3030
- name: Package
@@ -33,7 +33,7 @@ jobs:
3333
tar -C target/release -czf "${asset}" gitnapse
3434
echo "ASSET=${asset}" >> "$GITHUB_ENV"
3535
- name: Upload artifact
36-
uses: actions/upload-artifact@v4
36+
uses: actions/upload-artifact@v5
3737
with:
3838
name: asset-linux-ubuntu
3939
path: ${{ env.ASSET }}
@@ -53,7 +53,7 @@ jobs:
5353
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
5454
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
5555
- name: Checkout
56-
uses: actions/checkout@v4
56+
uses: actions/checkout@v6
5757
- name: Build
5858
run: cargo build --release --locked
5959
- name: Package
@@ -62,7 +62,7 @@ jobs:
6262
tar -C target/release -czf "${asset}" gitnapse
6363
echo "ASSET=${asset}" >> "$GITHUB_ENV"
6464
- name: Upload artifact
65-
uses: actions/upload-artifact@v4
65+
uses: actions/upload-artifact@v5
6666
with:
6767
name: asset-linux-arch
6868
path: ${{ env.ASSET }}
@@ -82,7 +82,7 @@ jobs:
8282
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
8383
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
8484
- name: Checkout
85-
uses: actions/checkout@v4
85+
uses: actions/checkout@v6
8686
- name: Build
8787
run: cargo build --release --locked
8888
- name: Package
@@ -91,7 +91,7 @@ jobs:
9191
tar -C target/release -czf "${asset}" gitnapse
9292
echo "ASSET=${asset}" >> "$GITHUB_ENV"
9393
- name: Upload artifact
94-
uses: actions/upload-artifact@v4
94+
uses: actions/upload-artifact@v5
9595
with:
9696
name: asset-linux-fedora
9797
path: ${{ env.ASSET }}
@@ -103,7 +103,7 @@ jobs:
103103
runs-on: windows-latest
104104
steps:
105105
- name: Checkout
106-
uses: actions/checkout@v4
106+
uses: actions/checkout@v6
107107
- name: Build
108108
run: cargo build --release --locked
109109
- name: Package
@@ -113,7 +113,7 @@ jobs:
113113
Compress-Archive -Path "target/release/gitnapse.exe" -DestinationPath $asset -Force
114114
"ASSET=$asset" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
115115
- name: Upload artifact
116-
uses: actions/upload-artifact@v4
116+
uses: actions/upload-artifact@v5
117117
with:
118118
name: asset-windows
119119
path: ${{ env.ASSET }}
@@ -125,7 +125,7 @@ jobs:
125125
runs-on: macos-latest
126126
steps:
127127
- name: Checkout
128-
uses: actions/checkout@v4
128+
uses: actions/checkout@v6
129129
- name: Build
130130
run: cargo build --release --locked
131131
- name: Package
@@ -135,7 +135,7 @@ jobs:
135135
tar -C target/release -czf "${asset}" gitnapse
136136
echo "ASSET=${asset}" >> "$GITHUB_ENV"
137137
- name: Upload artifact
138-
uses: actions/upload-artifact@v4
138+
uses: actions/upload-artifact@v5
139139
with:
140140
name: asset-macos
141141
path: ${{ env.ASSET }}
@@ -156,14 +156,16 @@ jobs:
156156
id-token: write
157157
steps:
158158
- name: Download build artifacts
159-
uses: actions/download-artifact@v5
159+
uses: actions/download-artifact@v6
160160
with:
161161
pattern: asset-*
162162
path: dist
163163
merge-multiple: true
164+
- name: Checkout repository metadata
165+
uses: actions/checkout@v6
164166
- name: Generate GitHub App token
165167
id: app_token
166-
uses: actions/create-github-app-token@v1
168+
uses: actions/create-github-app-token@v3
167169
with:
168170
app-id: ${{ secrets.RELEASE_GH_APP_ID }}
169171
private-key: ${{ secrets.RELEASE_GH_APP_PRIVATE_KEY }}
@@ -182,6 +184,7 @@ jobs:
182184
- name: Create or update release
183185
env:
184186
GH_TOKEN: ${{ steps.app_token.outputs.token }}
187+
GH_REPO: ${{ github.repository }}
185188
run: |
186189
gh release view "${RELEASE_TAG}" >/dev/null 2>&1 || \
187190
gh release create "${RELEASE_TAG}" --title "${RELEASE_TAG}" --generate-notes

0 commit comments

Comments
 (0)