Skip to content

Commit

Permalink
fix: github token permission
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed Oct 8, 2023
1 parent 0f9d9b3 commit 6599451
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/github-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
Expand All @@ -24,12 +27,11 @@ jobs:
java-package: jdk
architecture: x64
cache: maven
server-username: StarWishsama
- name: Build dough
if: github.event_name != 'pull_request'
run: mvn -B package --file pom.xml --errors
- name: Publish dough
if: github.event_name != 'pull_request'
run: mvn deploy --file pom-github-package.xml --errors
run: mvn -B deploy --file pom-github-package.xml --errors
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 6599451

Please sign in to comment.