Skip to content

Commit

Permalink
Update publish-gradle.yml
Browse files Browse the repository at this point in the history
katya-shaleninova authored Dec 4, 2024
1 parent 0b0305d commit cbaa852
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-gradle.yml
Original file line number Diff line number Diff line change
@@ -13,6 +13,9 @@ on:
jobs:
build:

env:
USERNAME: ${{ github.actor }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
permissions:
contents: read
@@ -35,7 +38,4 @@ jobs:
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
run: ./gradlew publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publish -DUSERNAME=${{ env.USERNAME }} -DPASSWORD=${{ env.PASSWORD }}

0 comments on commit cbaa852

Please sign in to comment.