ci: generate appcast, upload it

This commit is contained in:
Mitchell Hashimoto
2023-12-18 21:15:49 -08:00
parent 51fa5ea3d4
commit c352d88afd
3 changed files with 80 additions and 0 deletions

View File

@@ -179,7 +179,19 @@ jobs:
files: ghostty-macos-universal.zip
token: ${{ secrets.GH_RELEASE_TOKEN }}
# Create our appcast for Sparkle
- name: Generate Appcast
env:
SPARKLE_KEY: ${{ secrets.PROD_MACOS_SPARKLE_KEY }}
run: |
echo $SPARKLE_KEY > signing.key
sign_update -f signing.key src/App.zig > sign_update.txt
curl -L https://tip.files.ghostty.dev/appcast.xml > appcast.xml
python3 ./dist/macos/update_appcast_tip.py
test -f appcast_new.xml
# Update Blob Storage
- name: Upload to Blob Storage
run: |
s3cmd put ghostty-macos-universal.zip s3://ghostty-tip/${GHOSTTY_BUILD}/ghostty-macos-universal.zip
s3cmd put appcast_new.xml s3://ghostty-tip/appcast.xml