Skip to content

Commit

Permalink
feat: GHA builds jar file for every platform
Browse files Browse the repository at this point in the history
  • Loading branch information
notmeta committed Oct 11, 2022
1 parent bf89aa4 commit e7fbb62
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
frontend:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
include:
- os: ubuntu-latest
target: linux
- os: macos-latest
target: macos
- os: windows-latest
target: win
steps:
- uses: actions/checkout@v3
- name: Set up Java
Expand All @@ -38,8 +48,11 @@ jobs:
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: build
- name: Rename artifact
run: mv cs2-editor.jar cs2-editor-${{ matrix.target }}.jar
shell: bash
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: cs2-editor.jar
files: cs2-editor-${{ matrix.target }}.jar

0 comments on commit e7fbb62

Please sign in to comment.