updated GitHub workflows #8
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
# from https://github.com/actions/upload-release-asset | |
name: "Make a release" | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
publish: | |
name: "build and upload release asset" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: "check out code" | |
uses: actions/checkout@v4 | |
- name: "set up JDK" | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: "zulu" | |
cache: 'maven' | |
- name: "compile and package" | |
run: mvn -B clean install | |
- name: "create release and upload assets" | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "pbsmon/target/pbsmon2.war" |