diff --git a/.github/workflows/publish_android.yml b/.github/workflows/publish_android.yml index 7656710..0fe6eb7 100644 --- a/.github/workflows/publish_android.yml +++ b/.github/workflows/publish_android.yml @@ -13,6 +13,10 @@ jobs: - name: Check out code uses: actions/checkout@v4 + - name: Clean .build folder + run: | + rm -rf .build/ + - name: Export Debug AARs run: | skip export --module LemonKit --no-export-project -d android/lib/debug/ --debug @@ -25,7 +29,7 @@ jobs: working-directory: android env: VERSION_NAME: ${{ github.ref_name }} - PUBLISH_USER: ${{ secrets.PUBLISH_USER }} - PUBLISH_PAT_TOKEN: ${{ secrets.PUBLISH_PAT_TOKEN }} + GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | ./gradlew publish \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle index 00d4e5e..1efb7eb 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -7,8 +7,8 @@ version = System.getenv('VERSION_NAME') ?: '0.0.0' def githubRepo = 'theleftbit/LemonKit' def githubUrl = "https://maven.pkg.github.com/$githubRepo" -def ghUser = System.getenv('PUBLISH_USER') -def ghToken = System.getenv('PUBLISH_PAT_TOKEN') +def ghUser = System.getenv('GITHUB_ACTOR') +def ghToken = System.getenv('GITHUB_TOKEN') publishing { publications {