Try the default permissions #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
# This builds, tests, docs and then publishes to GitHub Packages. | |
name: Build and publish | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# permissions: | |
# contents: read | |
# packages: write | |
# metadata: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version-file: .java-version | |
distribution: temurin | |
cache: maven | |
- run: mvn -B -Prelease deploy |