Update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.2 - autoclosed #181
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Maven and Hub | |
run: sudo mkdir -p /usr/share/man/man1/ && sudo apt update && sudo apt install -y maven python3 hub | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Build with Maven | |
run: mvn clean compile resources:resources assembly:single | |
- name: Set release | |
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) | |
run: | | |
mv target/jMetro-*-jar-with-dependencies.jar . | |
chmod +x ./.github/extract_version | |
VERSION=`./.github/extract_version` | |
set -x | |
assets=() | |
for asset in ./*.jar; do | |
assets+=("-a" "$asset") | |
done | |
hub release create "${assets[@]}" -m "v$VERSION" "v$VERSION" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |