Skip to content

Commit

Permalink
use softprops/action-gh-release instead of unmaintained ones
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisoft committed Sep 9, 2024
1 parent 857c960 commit bb57b67
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ jobs:
permissions:
id-token: write
attestations: write
packages: write
contents: write

steps:
- name: Checkout code
Expand All @@ -194,25 +196,16 @@ jobs:
- uses: actions/attest-build-provenance@v1
with:
subject-path: 'attest_provenance/*'
subject-path: 'attest_provenance/*'

- name: Create GitHub release
id: github_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/[email protected]
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.PLUGIN_NAME }} ${{ github.ref }}
body_path: .github/RELEASE_TEMPLATE.md
prerelease: true

- name: Upload generic to GitHub release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.github_release.outputs.upload_url }}
asset_path: out/${{ env.PLUGIN_NAME }}-generic.zip
asset_name: ${{ env.PLUGIN_NAME }}-generic.zip
asset_content_type: application/zip
files: |
out/${{ env.PLUGIN_NAME }}-generic.zip
attest_provenance/ASFFreeGames*.dll*

0 comments on commit bb57b67

Please sign in to comment.