Fix missing changes of default score (#1400) #4221
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: Build | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
permissions: | |
contents: read | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- id: setup-java | |
name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
cache: maven | |
- id: build | |
name: ${{ (github.repository == 'PGMDev/PGM' && github.ref == 'refs/heads/dev') && 'Deploy JAR' || 'Build' }} | |
run: | | |
mvn --batch-mode ${{ (github.repository == 'PGMDev/PGM' && github.ref == 'refs/heads/dev') && | |
'deploy' || | |
'install' }} | |
env: | |
GITHUB_TOKEN: ${{ (github.repository == 'PGMDev/PGM' && github.ref == 'refs/heads/dev') && secrets.GITHUB_TOKEN || '' }} | |
- id: artifact | |
name: Upload Jar | |
uses: actions/upload-artifact@v4 | |
with: | |
name: PGM.jar | |
path: target/PGM.jar | |
if-no-files-found: error |