Skip to content

Commit 5f28d4a

Browse files
authored
Update ci.yml
1 parent 266e0a8 commit 5f28d4a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ jobs:
7272
needs: [build, lint, security]
7373
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
7474
runs-on: ubuntu-latest
75+
permissions:
76+
contents: read
77+
packages: write
7578
steps:
7679
- uses: actions/checkout@v3
7780

@@ -82,11 +85,7 @@ jobs:
8285
distribution: 'temurin'
8386
cache: gradle
8487

85-
- name: Publish to Maven Central
88+
- name: Publish to GitHub Packages
8689
run: ./gradlew publish
8790
env:
88-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
89-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
90-
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
91-
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
92-
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
91+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)