Skip to content

Commit

Permalink
Add release_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Sep 2, 2023
1 parent 0971a2f commit b5e9890
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/release_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Publish compiled binaries in release

on:
release:
types: [published]

jobs:
release-tsclient:
runs-on: windows-latest

steps:
- uses: actions/[email protected]
with:
ref: tsclient

- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: '7.x.x'

- name: Build Editor
run: ./build.ps1
shell: pwsh

- name: Pack compiled binaries
run: 7z a -tzip WorldAlteringEditor_TSClient.zip "D:\a\TSMapEditor\TSMapEditor\src\TSMapEditor\bin\Release\net7.0-windows\*.*"

- name: Upload compiled binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: 'WorldAlteringEditor_TSClient.zip'
asset_name: WorldAlteringEditor_TSClient.zip
asset_content_type: application/zip


release-yr:
runs-on: windows-latest

steps:
- uses: actions/[email protected]
with:
ref: yr

- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: '7.x.x'

- name: Build Editor
run: ./build.ps1
shell: pwsh

- name: Pack compiled binaries
run: 7z a -tzip WorldAlteringEditor_YurisRevenge.zip "D:\a\TSMapEditor\TSMapEditor\src\TSMapEditor\bin\Release\net7.0-windows\*.*"

- name: Upload compiled binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: 'WorldAlteringEditor_YurisRevenge.zip'
asset_name: WorldAlteringEditor_YurisRevenge.zip
asset_content_type: application/zip

0 comments on commit b5e9890

Please sign in to comment.