Skip to content

trigger on every push for rn #1

trigger on every push for rn

trigger on every push for rn #1

Workflow file for this run

name: Build and Release JAR

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 32, Col: 17): Unrecognized function: 'substr'. Located at position 1 within expression: substr(github.sha, 0, 7)
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # Required to create releases and upload assets
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- name: Build with Maven
run: mvn clean package -DskipTests
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Test Release ${{ github.ref_name }}-${{ substr(github.sha, 0, 7) }}
body: |
Automatic release for ${{ github.ref_name }}
draft: false
prerelease: true
files: target/ExtraHardMode.jar