-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.61 KB
/
Copy pathdeploy.yml
File metadata and controls
52 lines (44 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Deploy Pages
# Self-managed GitHub Pages deploy (Pages source = "GitHub Actions"). We control the action
# versions — all on Node 24 — so there's no Node-20 deprecation warning from the built-in
# builder, and we own the deploy step (which the managed one intermittently timed out on).
#
# It also publishes the Sparkle appcast: the signed appcast.xml is fetched from the latest
# Capsule release at deploy time and shipped with the site (no git commit needed). The schedule
# keeps the feed fresh even without a push; every push redeploys immediately.
on:
push:
branches: [main]
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Never cancel an in-progress deploy; let each finish so the site is always consistent.
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v7
- name: Pull latest signed appcast from the Capsule release
run: |
url="https://github.com/capsule-native/capsule/releases/latest/download/appcast.xml"
if curl -fsSL "$url" -o appcast.xml; then
echo "appcast.xml updated from the latest release."
else
echo "No published appcast on the latest release yet — shipping the placeholder."
fi
- uses: actions/configure-pages@v6
- uses: actions/upload-pages-artifact@v5
with:
path: .
- id: deployment
uses: actions/deploy-pages@v5