2026-05-27 20:00:39 +02:00
|
|
|
name: Update Website
|
2026-05-12 09:10:21 +02:00
|
|
|
|
|
|
|
|
on:
|
2026-05-29 12:53:18 +02:00
|
|
|
schedule:
|
|
|
|
|
- cron: '0 * * * *' # every hour on the hour
|
2026-05-12 09:10:21 +02:00
|
|
|
push:
|
|
|
|
|
branches: [main]
|
|
|
|
|
paths:
|
|
|
|
|
- 'website/**'
|
2026-05-13 09:32:46 +02:00
|
|
|
- 'scripts/website-verify.sh'
|
2026-05-12 09:10:21 +02:00
|
|
|
- '.forgejo/workflows/website.yml'
|
2026-05-13 09:43:10 +02:00
|
|
|
workflow_dispatch:
|
2026-05-12 09:10:21 +02:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
deploy:
|
2026-05-27 20:00:39 +02:00
|
|
|
name: Build & Update Website
|
2026-05-17 22:11:57 +02:00
|
|
|
runs-on: ubuntu-latest
|
2026-05-26 08:01:37 +02:00
|
|
|
timeout-minutes: 60
|
2026-05-12 09:10:21 +02:00
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
with:
|
|
|
|
|
submodules: recursive
|
|
|
|
|
|
2026-05-26 08:01:37 +02:00
|
|
|
- name: Check runner tools
|
|
|
|
|
run: |
|
|
|
|
|
command -v dagger >/dev/null 2>&1 || { echo "ERROR: dagger is not installed in the runner image. Add it to .forgejo/Dockerfile."; exit 1; }
|
|
|
|
|
command -v task >/dev/null 2>&1 || { echo "ERROR: task is not installed in the runner image. Add it to .forgejo/Dockerfile."; exit 1; }
|
|
|
|
|
|
2026-06-02 17:00:54 +02:00
|
|
|
- name: Setup Dagger Remote Engine
|
2026-05-26 08:01:37 +02:00
|
|
|
env:
|
2026-06-02 17:00:54 +02:00
|
|
|
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}
|
2026-05-26 08:01:37 +02:00
|
|
|
run: scripts/setup_dagger_remote.sh
|
|
|
|
|
|
2026-05-27 20:00:39 +02:00
|
|
|
- name: Build & Update Website
|
2026-05-12 09:10:21 +02:00
|
|
|
env:
|
2026-05-26 08:01:37 +02:00
|
|
|
DAGGER_NO_NAG: "1"
|
|
|
|
|
run: task publish-website
|
2026-05-13 09:32:46 +02:00
|
|
|
|
2026-05-17 11:52:38 +02:00
|
|
|
- name: Verify Website
|
|
|
|
|
env:
|
2026-06-03 06:37:07 +02:00
|
|
|
SSH_HOST: ${{ env.WEBSITE_SSH_HOST }}
|
2026-05-17 13:17:28 +02:00
|
|
|
run: scripts/website-verify.sh
|