mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
The site build now copies install-linux.sh, install-windows.ps1, and packaging/macos/legacy-appcast.xml into its Worker assets, so the same Worker serves them at /hex/files with the Content-Type and Cache-Control the bucket objects had. The Installers and Legacy appcast workflows, r2-put.sh, and their R2 write credential are gone. The dev notes move to the one-commit dev-notes branch, published by Release's dev-notes job with GITHUB_TOKEN only; the Worker proxies that file at /hex/files/dev-notes.json (falling back to the bucket copy until the first dev release creates the branch) and renders /hex/dev from it. Both site Workers now bind hex-production-files, read-only in code, for the frozen 2.3.1 feeds and artifacts, which lets hex-dev-files go. The Site build runs the installer test and appcast check the removed workflows ran, and the verify job compares the served bytes.
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Site
|
|
|
|
# Pull requests run no site check (CI is minimal; the deploy builds the site
|
|
# and checks every download link). A push (or a dispatch) on dev deploys the
|
|
# dev site (https://dev.anoma.ly/hex); on
|
|
# production, which moves only by a fast-forward from dev, the production
|
|
# site (https://anoma.ly/hex). The mode always follows the branch.
|
|
on:
|
|
push:
|
|
branches: [dev, production]
|
|
paths:
|
|
- "site/**"
|
|
- ".github/workflows/site.yml"
|
|
- ".github/workflows/site-deploy.yml"
|
|
- ".github/release/deploy-site.sh"
|
|
- ".github/release/cf/**"
|
|
- ".github/release/install-linux.sh"
|
|
- ".github/release/install-windows.ps1"
|
|
- "packaging/macos/legacy-appcast.xml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: site-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
deploy:
|
|
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/production'
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
uses: ./.github/workflows/site-deploy.yml
|
|
with:
|
|
mode: ${{ github.ref == 'refs/heads/production' && 'production' || 'dev' }}
|