diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ff87cde465..2781e9661a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} @@ -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 }} @@ -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 \ No newline at end of file