Skip to content

Commit

Permalink
github(workflow): add macos distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hoefer committed Dec 18, 2020
1 parent e818047 commit f92ebce
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,41 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build/compose/binaries/main/deb/ck3-workbench_0.0.1-1_amd64.msi
asset_name: ck3-workbench_0.0.1-1_amd64.deb
asset_path: ./build/compose/binaries/main/msi/ck3-workbench_0.0.1-1_amd64.msi
asset_name: ck3-workbench_0.0.1-1_amd64.msi
asset_content_type: application/zip

macos-release:
needs: build
name: macOS Release
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 14
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create Windows Distribution
run: ./gradlew packageMsi
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build/compose/binaries/main/dmg/ck3-workbench_0.0.1-1_amd64.dmg
asset_name: ck3-workbench_0.0.1-1_amd64.dmg
asset_content_type: application/zip

0 comments on commit f92ebce

Please sign in to comment.