Use github release tags in builds (#478) #16
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: Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-bundle: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '19' | |
distribution: 'temurin' | |
architecture: x64 | |
cache: 'gradle' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Grant permissions to gradlew | |
run: chmod +x gradlew | |
- name: Get build version | |
run: echo "build_version=$(./gradlew -q printVersion)" >> $GITHUB_ENV | |
- name: Run distribution assembly | |
run: ./gradlew buildScripts assembleBundleDist | |
- name: Upload distribution | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | |
gh release create ${{ github.ref_name }} ./game/build/distributions/void-${{ env.build_version }}.zip |