chore: add github actions #9
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: Create release and upload binaries | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]*" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: Build release binaries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew clean pz | |
# - name: Build with Gradle | |
# run: | | |
# java -version | |
# chmod +x gradlew | |
# ./gradlew clean pz | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: release-artifacts | |
path: build/distributions | |
- name: Add Artifacts to Release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: release-artifacts/*.zip |