ci: use custom token for release so it isn't rate limited

This commit is contained in:
Mitchell Hashimoto
2023-08-12 11:41:22 -07:00
parent 63fa34ef6b
commit 923df53825
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,8 @@
name: Clean Artifacts
on:
schedule:
# Every 6 hours
- cron: '0 */6 * * *'
# Once a day
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
remove-old-artifacts:

View File

@ -65,6 +65,7 @@ jobs:
tag_name: tip
target_commitish: ${{ github.sha }}
files: ghostty-${{ matrix.arch }}.flatpak
token: ${{ secrets.GH_RELEASE_TOKEN }}
build-macos:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
@ -116,6 +117,7 @@ jobs:
tag_name: tip
target_commitish: ${{ github.sha }}
files: ghostty-macos-universal-unsigned.zip
token: ${{ secrets.GH_RELEASE_TOKEN }}
- name: Codesign app bundle
env:
@ -181,3 +183,4 @@ jobs:
tag_name: tip
target_commitish: ${{ github.sha }}
files: ghostty-macos-universal.zip
token: ${{ secrets.GH_RELEASE_TOKEN }}