Skip to content

Publish

Publish #2

Workflow file for this run

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 }}