fix(ci): isolate releases from shared API rate limits (#5394)
This commit is contained in:
1 parent
9d9a872bcc
commit
9697b765e5
2 files changed
+10
-15
No files matched your search
@@ -747,15 +747,9 @@ jobs:
|
||||
if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.build.result == 'success' && needs.publish_cli.result == 'success' }}
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- id: app_token
|
||||
name: Mint release app token
|
||||
uses: actions/create-github-app-token@v2
|
||||
with:
|
||||
app-id: ${{ secrets.RELEASE_APP_ID }}
|
||||
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|
||||
owner: ${{ github.repository_owner }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
@@ -823,7 +817,7 @@ jobs:
|
||||
|
||||
- name: Publish release
|
||||
if: needs.preflight.outputs.previous_tag != ''
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
tag_name: ${{ needs.preflight.outputs.tag }}
|
||||
target_commitish: ${{ needs.preflight.outputs.ref }}
|
||||
@@ -840,11 +834,11 @@ jobs:
|
||||
release-assets/*.blockmap
|
||||
release-assets/*.yml
|
||||
fail_on_unmatched_files: true
|
||||
token: ${{ steps.app_token.outputs.token }}
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Publish first release
|
||||
if: needs.preflight.outputs.previous_tag == ''
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
tag_name: ${{ needs.preflight.outputs.tag }}
|
||||
target_commitish: ${{ needs.preflight.outputs.ref }}
|
||||
@@ -860,7 +854,7 @@ jobs:
|
||||
release-assets/*.blockmap
|
||||
release-assets/*.yml
|
||||
fail_on_unmatched_files: true
|
||||
token: ${{ steps.app_token.outputs.token }}
|
||||
token: ${{ github.token }}
|
||||
|
||||
deploy_web:
|
||||
name: Deploy hosted web app
|
||||
|
||||
@@ -34,14 +34,15 @@ This document covers the unified release workflow for stable and nightly desktop
|
||||
|
||||
## Required release credentials
|
||||
|
||||
The release workflow requires these GitHub Actions secrets in addition to the platform and deployment
|
||||
Stable releases require these GitHub Actions secrets in addition to the platform and deployment
|
||||
credentials documented below:
|
||||
|
||||
- `RELEASE_APP_ID`
|
||||
- `RELEASE_APP_PRIVATE_KEY`
|
||||
|
||||
The GitHub Release job uses them to mint the token that publishes release assets. Stable releases use
|
||||
them again in the finalize job, which can commit and push aligned package versions to `main`.
|
||||
The finalize job uses them to commit and push aligned package versions to `main` as the Release App.
|
||||
GitHub Release publication uses the repository-scoped workflow token so it has a rate-limit quota
|
||||
independent from the shared Release App installation.
|
||||
|
||||
## T3 Connect relay deployment
|
||||
|
||||
|
||||
Reference in new issue
Block a user