Skip to content

Prepare next development version #279

Prepare next development version

Prepare next development version #279

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- trunk
tags:
- '**'
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v3
- run: ./gradlew build
- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest'
with:
name: string-res-exporter-binary
path: build/libs/string-res-exporter-*-binary.jar
if-no-files-found: error
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'Goooler' && startsWith(github.ref, 'refs/tags/')
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Find binary.jar
run: |
BINARY_JAR=$(find . -name '*binary.jar')
echo "Found JAR file at: $BINARY_JAR"
echo "BINARY_JAR=$BINARY_JAR" >> $GITHUB_ENV
- name: Create release and upload binary.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" "./$BINARY_JAR" -t "${{ github.ref_name }}" --generate-notes