Skip to content

Publish package to GitHub Packages #1

Publish package to GitHub Packages

Publish package to GitHub Packages #1

Workflow file for this run

name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1

Check failure on line 20 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish package to GitHub Packages

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 20, Col: 9): 'uses' is already defined
with:
java-version: '11'
distribution: 'temurin'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}