Skip to content

Update releaseToGithubPackages.yml #5

Update releaseToGithubPackages.yml

Update releaseToGithubPackages.yml #5

name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Publish package
run: ./mvnw -s "${{ github.workspace }}/scriptsAndTools/internalOrCiOnly/deploySettings.xml" deploy -Dgithub.user=$GITHUB_USER -Dgithub.token=$GITHUB_TOKEN
env:
GITHUB_USER: ${{ secrets.MAVEN_REPO_USER }}

Check failure on line 22 in .github/workflows/releaseToGithubPackages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/releaseToGithubPackages.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}