Skip to content

Packaging

Packaging #6

Workflow file for this run

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/*