You can use $skip in order to avoid showing a line in a condition. #131
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: Publish and Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- run: java -version && mvn --version | |
- run: mvn --no-transfer-progress package -Dmaven.javadoc.skip=true | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: 'RealScoreboard (Dev Build)' | |
path: realscoreboard-plugin/target/realscoreboard*.jar |