From 9d86e79ad6aa510a95f83e552e5601ed394893ca Mon Sep 17 00:00:00 2001 From: Jack Boswell Date: Sun, 17 Sep 2023 14:47:18 +1200 Subject: [PATCH] Fix publish workflow --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 45733d2..a93f2ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,6 +6,9 @@ on: jobs: publish: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - name: Checkout uses: actions/checkout@v3 @@ -20,6 +23,6 @@ jobs: run: ./gradlew publish --scan env: ORG_GRADLE_PROJECT_githubUsername: boswelja - ORG_GRADLE_PROJECT_githubToken: ${{ GITHUB_TOKEN }} + ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUB_TOKEN }} ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }} ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}