Skip to content

Update build.yml

Update build.yml #5

Workflow file for this run

name: Build and Release
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Clean Maven
run: mvn clean
- name: Install dependencies and build
run: mvn install
- name: Run Jar
run: java -jar target/ForgeServerJAR.jar
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: |
target/ForgeServerJAR.jar
token: ${{ secrets.GITHUB_TOKEN }}
release_name: Release ${{ GITHUB_SHA::6 }}

Check failure on line 39 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build and Release

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 39, Col: 23): Unexpected symbol: 'GITHUB_SHA::6'. Located at position 1 within expression: GITHUB_SHA::6 .github/workflows/build.yml (Line: 40, Col: 19): Unexpected symbol: 'GITHUB_SHA::6'. Located at position 1 within expression: GITHUB_SHA::6
tag_name: ${{ GITHUB_SHA::6 }}
draft: false
prerelease: false