Skip to content

remove tag restriction #1

remove tag restriction

remove tag restriction #1

# Uploads executables for main OS archs to GitHub on tag push
name: Upload-Executables
on: push
jobs:
upload-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
architecture: x64
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: JPackage using Gradle
run: ./gradlew jpackage
- name: Upload JPackage artifact
uses: actions/upload-artifact@v2
with:
name: mac-os-artifact
path: build/jpackage/
upload-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
architecture: x64
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: JPackage using Gradle
run: ./gradlew jpackage
- name: Upload JPackage artifact
uses: actions/upload-artifact@v2
with:
name: ubuntu-artifact
path: build/jpackage/
upload-windows:
# only runs if the PR has been merged
if: github.event.pull_request.merged == true
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
architecture: x64
- name: JPackage using Gradle
run: ./gradlew jpackage
- name: Upload JPackage artifact
uses: actions/upload-artifact@v2
with:
name: win-artifact
path: build/jpackage/