Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Nov 27, 2024
1 parent c5a412b commit 7cfc23e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Download macOS artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.BUILD_PREFIX }}-macos-latest
name: ${{ env.BUILD_PREFIX }}-macOS-latest
path: ./artifacts/
github-token: ${{ secrets.GH_PAT }}
repository: ${{ env.TARGET_REPOSITORY }}
Expand All @@ -60,6 +60,8 @@ jobs:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.tag_name }}
release_name: ${{ github.event.inputs.release_name }}
Expand All @@ -69,24 +71,31 @@ jobs:

- name: Upload Ubuntu
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/${{ env.BUILD_PREFIX }}-ubuntu-latest.zip
asset_name: ${{ env.BUILD_PREFIX }}-ubuntu-latest.zip
asset_content_type: application/zip


- name: Upload Windows
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/${{ env.BUILD_PREFIX }}-windows-latest.zip
asset_name: ${{ env.BUILD_PREFIX }}-windows-latest.zip
asset_content_type: application/zip

- name: Upload macOS
- name: Upload OS
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/${{ env.BUILD_PREFIX }}-macos-latest.zip
asset_name: ${{ env.BUILD_PREFIX }}-macos-latest.zip
asset_path: ./artifacts/${{ env.BUILD_PREFIX }}-macOS-latest.zip
asset_name: ${{ env.BUILD_PREFIX }}-macOS-latest.zip
asset_content_type: application/zip

0 comments on commit 7cfc23e

Please sign in to comment.