Packaging #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Packaging | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build_release: | |
strategy: | |
matrix: | |
os: | |
- windows-latest | |
- macos-latest | |
jdk-version: | |
- 17 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout sphinx-kotlin-v2 code | |
uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
token: ${{secrets.SPHINX_TOKEN }} | |
- name: Setting up JDK for ${{ matrix.jdk-version }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "zulu" | |
java-version: ${{ matrix.jdk-version }} | |
- name: Granting gradlew execute permission | |
run: chmod +x gradlew | |
- name: Packaging distributables for ${{ runner.os }} | |
run: ./gradlew package | |
- name: Uploading artifacts to release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref , 'refs/tags/') | |
with: | |
files: | | |
desktop/build/compose/binaries/main/dmg/* | |
desktop/build/compose/binaries/main/msi/* | |
desktop/build/compose/binaries/main/deb/* |