ci: only release tip releases when triggered from the main branch

pull/8556/head
Mitchell Hashimoto 2025-09-06 20:43:56 -07:00
parent 6ceaa34a7c
commit 24b9e33a8c
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 12 additions and 0 deletions

View File

@ -372,6 +372,10 @@ jobs:
# Create our appcast for Sparkle # Create our appcast for Sparkle
- name: Generate Appcast - name: Generate Appcast
if: |
github.event.workflow_run.conclusion == 'success' &&
github.repository_owner == 'ghostty-org' &&
github.ref_name == 'main'
env: env:
SPARKLE_KEY: ${{ secrets.PROD_MACOS_SPARKLE_KEY }} SPARKLE_KEY: ${{ secrets.PROD_MACOS_SPARKLE_KEY }}
run: | run: |
@ -403,12 +407,20 @@ jobs:
# Now upload our appcast. This ensures that the appcast never # Now upload our appcast. This ensures that the appcast never
# gets out of sync with the binaries. # gets out of sync with the binaries.
- name: Prep R2 Storage for Appcast - name: Prep R2 Storage for Appcast
if: |
github.event.workflow_run.conclusion == 'success' &&
github.repository_owner == 'ghostty-org' &&
github.ref_name == 'main'
run: | run: |
rm -r blob rm -r blob
mkdir blob mkdir blob
cp appcast_new.xml blob/appcast.xml cp appcast_new.xml blob/appcast.xml
- name: Upload Appcast to R2 - name: Upload Appcast to R2
if: |
github.event.workflow_run.conclusion == 'success' &&
github.repository_owner == 'ghostty-org' &&
github.ref_name == 'main'
uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c # v1.4 uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c # v1.4
with: with:
r2-account-id: ${{ secrets.CF_R2_TIP_ACCOUNT_ID }} r2-account-id: ${{ secrets.CF_R2_TIP_ACCOUNT_ID }}