Publish Maven package to GitHub Packages #5
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 Maven package to GitHub Packages | |
on: | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: "Specify the branch, tag, or commit SHA to checkout" | |
required: true | |
jobs: | |
publish: | |
name: Publish package to GitHub Packages | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: Luftfartsverket/reqstool-client | |
ref: ${{ inputs.ref }} | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: "21" | |
distribution: "temurin" | |
- name: Publish package | |
run: | | |
ls -l | |
mvn --file tests/resources/test_data/data/local/test_basic/layout_maven/ms-101/pom.xml --batch-mode deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |