Skip to content

Commit

Permalink
replace gh-actions/create-release with softprops/action-gh-release
Browse files Browse the repository at this point in the history
  • Loading branch information
dangeredwolf committed Aug 28, 2023
1 parent 9f66aab commit 094a37a
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,13 @@ jobs:
- name: Download Artifacts
uses: actions/download-artifact@v2

- name: Create GitHub Release
uses: gh-actions/[email protected]
- name: Upload Release Asset
- name: Create GitHub Release and Upload Assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
files: |
target/${{ matrix.target }}/release/mosaic${{ matrix.target == 'x86_64-pc-windows-gnu' && '.exe' || '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
uses: actions/[email protected]
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./mosaic-${{ matrix.target }}
asset_name: mosaic-${{ matrix.target }}
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 094a37a

Please sign in to comment.