Skip to content

Support automatic proxying of Chipmunk objects to Java interfaces whe… #62

Support automatic proxying of Chipmunk objects to Java interfaces whe…

Support automatic proxying of Chipmunk objects to Java interfaces whe… #62

Workflow file for this run

name: publish_cli
on:
push:
tags:
- v*
jobs:
get_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0' # Get all tags - necessary for versioning
- name: Get version
id: version
run: echo "version=$(git describe --tags --always --first-parent)" >> "$GITHUB_OUTPUT"
draft_release:
needs: get_version
runs-on: ubuntu-latest
outputs:
id: ${{ steps.draft_release.outputs.id }}
steps:
- name: Create Draft Release
id: draft_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.get_version.outputs.version }}
release_name: CLI - ${{ needs.get_version.outputs.version }}
draft: true
prerelease: false
build:
needs: [get_version, draft_release]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-2019, macos-11 ]
include:
- os: ubuntu-latest
env:
PLATFORM: linux
INSTALLER_NAME: Debian
INSTALLER_EXT: deb
INSTALLER_MEDIA_TYPE: application/vnd.debian.binary-package
- os: windows-2019
env:
PLATFORM: win
INSTALLER_NAME: Windows
INSTALLER_EXT: exe
INSTALLER_MEDIA_TYPE: application/vnd.microsoft.portable-executable
- os: macos-11
env:
PLATFORM: mac
INSTALLER_NAME: Mac
INSTALLER_EXT: dmg
INSTALLER_MEDIA_TYPE: application/x-apple-diskimage
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0' # Get all tags - necessary for Gradle versioning
- name: Set up JDK 1.16
uses: actions/setup-java@v1
with:
java-version: 1.16
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Gradle
run: ./gradlew :CLI:jpackage --info
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.env.INSTALLER_NAME }} Installer - ${{ needs.get_version.outputs.version }}
path: CLI/build/installer/*.${{ matrix.env.INSTALLER_EXT }}
- name: Publish release asset
id: publish_release_assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.draft_release.outputs.id }}
assets_path: CLI/build/installer