From a0ead059544ea09c99d01b446ab07af401401549 Mon Sep 17 00:00:00 2001 From: Kiwi Browser <40272275+kiwibrowser@users.noreply.github.com> Date: Sun, 7 Feb 2021 10:29:08 +0200 Subject: [PATCH] Try to workaround GitHub Actions permission issue for create release process --- .github/workflows/build_apk.yml | 39 +++++++++++++++++---------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build_apk.yml b/.github/workflows/build_apk.yml index 55e051a7321..465e2c5b856 100644 --- a/.github/workflows/build_apk.yml +++ b/.github/workflows/build_apk.yml @@ -1,7 +1,6 @@ # Build APKs for Kiwi Browser name: automatic build of apk - # Controls when the action will run. Triggers the workflow on push or pull request events on: workflow_dispatch: @@ -333,10 +332,12 @@ jobs: - name: Creating release id: create_release - uses: actions/create-release@v1 + uses: actions/create-release@v1.1.4 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: + owner: "kiwibrowser" + repo: "src" tag_name: ${{ github.run_id }} release_name: Generation ${{ github.run_id }} draft: false @@ -408,7 +409,7 @@ jobs: - name: Uploading APK into GitHub release (arm) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-arm/ChromePublic.apk @@ -418,7 +419,7 @@ jobs: - name: Uploading APK into GitHub release (arm64) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-arm64/ChromePublic.apk @@ -428,7 +429,7 @@ jobs: - name: Uploading APK into GitHub release (x86) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-x86/ChromePublic.apk @@ -438,7 +439,7 @@ jobs: - name: Uploading APK into GitHub release (x64) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-x64/ChromePublic.apk @@ -448,7 +449,7 @@ jobs: - name: Uploading mapping file into GitHub release (arm) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-arm/ChromePublic.apk.mapping @@ -458,7 +459,7 @@ jobs: - name: Uploading mapping file into GitHub release (arm64) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-arm64/ChromePublic.apk.mapping @@ -468,7 +469,7 @@ jobs: - name: Uploading mapping file into GitHub release (x86) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-x86/ChromePublic.apk.mapping @@ -478,7 +479,7 @@ jobs: - name: Uploading mapping file into GitHub release (x64) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-x64/ChromePublic.apk.mapping @@ -488,7 +489,7 @@ jobs: - name: Uploading native mapping file into GitHub release (arm) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-arm/ChromePublic.native.mapping.tar.gz @@ -498,7 +499,7 @@ jobs: - name: Uploading native mapping file into GitHub release (arm64) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-arm64/ChromePublic.native.mapping.tar.gz @@ -508,7 +509,7 @@ jobs: - name: Uploading native mapping file into GitHub release (x86) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-x86/ChromePublic.native.mapping.tar.gz @@ -518,7 +519,7 @@ jobs: - name: Uploading native mapping file into GitHub release (x64) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-x64/ChromePublic.native.mapping.tar.gz @@ -559,7 +560,7 @@ jobs: if: ${{ github.repository_owner == 'kiwibrowser' }} uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-arm/ChromePublic-DevSigned.apk @@ -570,7 +571,7 @@ jobs: if: ${{ github.repository_owner == 'kiwibrowser' }} uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-arm64/ChromePublic-DevSigned.apk @@ -581,7 +582,7 @@ jobs: if: ${{ github.repository_owner == 'kiwibrowser' }} uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-x86/ChromePublic-DevSigned.apk @@ -592,7 +593,7 @@ jobs: if: ${{ github.repository_owner == 'kiwibrowser' }} uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./apk-x64/ChromePublic-DevSigned.apk