Updated: Update base pom.xml #180
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: RoyalCommands Build | |
on: | |
push: | |
pull_request: | |
jobs: | |
# Build RoyalCommands using Maven | |
build-rcmds: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.commits[0].message, '[ci-skip]')" | |
steps: | |
- name: Checkout RoyalCommands | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: maven | |
- name: Build RoyalCommands with Maven | |
env: | |
GITHUB_USERNAME: ${{ secrets.USERNAME }} | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
run: mvn clean package --settings settings.xml | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: RoyalCommands (#${{ github.run_number }}) | |
path: | | |
/home/runner/work/RoyalCommands/RoyalCommands/modules/RoyalCommands/target/*.jar | |
/home/runner/work/RoyalCommands/RoyalCommands/modules/RoyalCommands/target/RoyalCommands |