mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
ci: on release, only upload appcast after binaries
This commit is contained in:
22
.github/workflows/release-tip.yml
vendored
22
.github/workflows/release-tip.yml
vendored
@ -297,14 +297,14 @@ jobs:
|
|||||||
python3 ./dist/macos/update_appcast_tip.py
|
python3 ./dist/macos/update_appcast_tip.py
|
||||||
test -f appcast_new.xml
|
test -f appcast_new.xml
|
||||||
|
|
||||||
# Update Blob Storage
|
# Upload our binaries first
|
||||||
- name: Prep R2 Storage
|
- name: Prep R2 Storage
|
||||||
run: |
|
run: |
|
||||||
mkdir blob
|
mkdir blob
|
||||||
mkdir -p blob/${GHOSTTY_COMMIT_LONG}
|
mkdir -p blob/${GHOSTTY_COMMIT_LONG}
|
||||||
cp ghostty-macos-universal.zip blob/${GHOSTTY_COMMIT_LONG}/ghostty-macos-universal.zip
|
cp ghostty-macos-universal.zip blob/${GHOSTTY_COMMIT_LONG}/ghostty-macos-universal.zip
|
||||||
cp ghostty-macos-universal-dsym.zip blob/${GHOSTTY_COMMIT_LONG}/ghostty-macos-universal-dsym.zip
|
cp ghostty-macos-universal-dsym.zip blob/${GHOSTTY_COMMIT_LONG}/ghostty-macos-universal-dsym.zip
|
||||||
cp appcast_new.xml blob/appcast.xml
|
|
||||||
- name: Upload to R2
|
- name: Upload to R2
|
||||||
uses: ryand56/r2-upload-action@latest
|
uses: ryand56/r2-upload-action@latest
|
||||||
with:
|
with:
|
||||||
@ -315,6 +315,24 @@ jobs:
|
|||||||
source-dir: blob
|
source-dir: blob
|
||||||
destination-dir: ./
|
destination-dir: ./
|
||||||
|
|
||||||
|
# Now upload our appcast. This ensures that the appcast never
|
||||||
|
# gets out of sync with the binaries.
|
||||||
|
- name: Prep R2 Storage for Appcast
|
||||||
|
run: |
|
||||||
|
rm -r blob
|
||||||
|
mkdir blob
|
||||||
|
cp appcast_new.xml blob/appcast.xml
|
||||||
|
|
||||||
|
- name: Upload Appcast to R2
|
||||||
|
uses: ryand56/r2-upload-action@latest
|
||||||
|
with:
|
||||||
|
r2-account-id: ${{ secrets.CF_R2_TIP_ACCOUNT_ID }}
|
||||||
|
r2-access-key-id: ${{ secrets.CF_R2_TIP_AWS_KEY }}
|
||||||
|
r2-secret-access-key: ${{ secrets.CF_R2_TIP_SECRET_KEY }}
|
||||||
|
r2-bucket: ghostty-tip
|
||||||
|
source-dir: blob
|
||||||
|
destination-dir: ./
|
||||||
|
|
||||||
build-macos-debug-slow:
|
build-macos-debug-slow:
|
||||||
if: |
|
if: |
|
||||||
${{
|
${{
|
||||||
|
Reference in New Issue
Block a user