Skip to content

Commit bb57b67

Browse files
committed
use softprops/action-gh-release instead of unmaintained ones
1 parent 857c960 commit bb57b67

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ jobs:
172172
permissions:
173173
id-token: write
174174
attestations: write
175+
packages: write
176+
contents: write
175177

176178
steps:
177179
- name: Checkout code
@@ -194,25 +196,16 @@ jobs:
194196
195197
- uses: actions/attest-build-provenance@v1
196198
with:
197-
subject-path: 'attest_provenance/*'
199+
subject-path: 'attest_provenance/*'
198200

199201
- name: Create GitHub release
200202
id: github_release
201-
uses: actions/create-release@v1.1.4
202-
env:
203-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
203+
uses: softprops/action-gh-release@v2.0.8
204204
with:
205205
tag_name: ${{ github.ref }}
206206
release_name: ${{ env.PLUGIN_NAME }} ${{ github.ref }}
207207
body_path: .github/RELEASE_TEMPLATE.md
208208
prerelease: true
209-
210-
- name: Upload generic to GitHub release
211-
uses: actions/upload-release-asset@v1.0.2
212-
env:
213-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214-
with:
215-
upload_url: ${{ steps.github_release.outputs.upload_url }}
216-
asset_path: out/${{ env.PLUGIN_NAME }}-generic.zip
217-
asset_name: ${{ env.PLUGIN_NAME }}-generic.zip
218-
asset_content_type: application/zip
209+
files: |
210+
out/${{ env.PLUGIN_NAME }}-generic.zip
211+
attest_provenance/ASFFreeGames*.dll*

0 commit comments

Comments
 (0)