Skip to content

Commit

Permalink
update publish stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDavenport committed Apr 23, 2024
1 parent 0a3d1bc commit d38d522
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,23 @@ jobs:
asset_path: ./target/release/gccl.exe
asset_name: gccl-${{ matrix.release_suffix }}.exe
asset_content_type: application/zip # required by GitHub API

- name: Publish App for Mac & Linux
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
uses: WebFreak001/[email protected]
with:
upload_url: https://uploads.github.com/repos/gamercade-io/gamercade_console/releases/73475292/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
release_id: 73475292 # same as above (id can just be taken out the upload_url, it's used to find old releases)
asset_path: ./target/release/app
asset_name: gamercade_app-${{ matrix.release_suffix }}
asset_content_type: application/zip # required by GitHub API

- name: Publish App for Windows
if: matrix.os == 'windows-latest'
uses: WebFreak001/[email protected]
with:
upload_url: https://uploads.github.com/repos/gamercade-io/gamercade_console/releases/73475292/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
release_id: 73475292 # same as above (id can just be taken out the upload_url, it's used to find old releases)
asset_path: ./target/release/app.exe
asset_name: gamercade_app-${{ matrix.release_suffix }}.exe
asset_content_type: application/zip # required by GitHub API

0 comments on commit d38d522

Please sign in to comment.