Skip to content

Commit

Permalink
add windows and osx release pipelines to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Nov 3, 2023
1 parent 932d832 commit e1cacff
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,29 @@ jobs:
- uses: softprops/action-gh-release@v1
with:
files: "HelloHTTP-${{ github.ref_name }}-ubuntu-${{ runner.arch }}.tar.gz"
build-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- run: ./gradlew createDistributable packageDistributionForCurrentOS
- run: pushd ./build/compose/binaries/main/app && dir && tar -acf "app.zip" "Hello HTTP" && move "app.zip" "../../../../../HelloHTTP-${{ github.ref_name }}-windows-${{ runner.arch }}.zip" && popd
- uses: softprops/action-gh-release@v1
with:
files: "HelloHTTP-${{ github.ref_name }}-windows-${{ runner.arch }}.zip"
build-macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- run: ./gradlew createDistributable packageDistributionForCurrentOS
- run: mv ./build/compose/binaries/main/dmg/*.dmg "./HelloHTTP-${{ github.ref_name }}-macos-${{ runner.arch }}.dmg"
- uses: softprops/action-gh-release@v1
with:
files: "./HelloHTTP-${{ github.ref_name }}-macos-${{ runner.arch }}.dmg"

0 comments on commit e1cacff

Please sign in to comment.