Skip to content

release

release #4

Workflow file for this run

name: Release
on:
push:
tags: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Save to CHANGELOG
run: echo "${{ steps.changelog.outputs.changelog }}" > CHANGELOG.md
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: "Expansion"
path: "**/target/*.jar"
- name: Release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.changelog.outputs.changelog }}
fail_on_unmatched_files: true
files: "**/target/*.jar"
draft: false
prerelease: false