Publish #2
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 | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy-packages: | |
if: github.repository_owner == 'RHEcosystemAppEng' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
name: Deploy | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set NPM auth token | |
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc | |
- name: Build and Publish to GitHub Maven Packages | |
run: mvn -B deploy -Prelease --file pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |