diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b539f95..580d87e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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