Skip to content

Update and simplify the release GitHub Action #8

Update and simplify the release GitHub Action

Update and simplify the release GitHub Action #8

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*' # Run only when the tag matches v*, i.e. v1.0, v20.15.10
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Build project
run: ./gradlew --no-daemon --console=plain build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create --draft "$GITHUB_REF_NAME" ./build/distributions/xvalid.tar ./build/distributions/xvalid.zip