Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
Try to workaround GitHub Actions permission issue for create release …
Browse files Browse the repository at this point in the history
…process
  • Loading branch information
kiwibrowser authored Feb 7, 2021
1 parent 2be9c4e commit a0ead05
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/build_apk.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a0ead05

Please sign in to comment.