Compare commits

...

2 commits

Author SHA1 Message Date
265bde56b4 Merge pull request 'Adopt shared ci-actions for publishing' (#1) from ci/shared-actions into main
All checks were successful
Check & deploy / deploy (push) Successful in 6s
Reviewed-on: https://home.schmelczer.dev/git/git/andras/avoid/pulls/1
2026-06-06 15:17:21 +01:00
24b0cb7df6 Adopt shared ci-actions for publishing
All checks were successful
Check & deploy / deploy (pull_request) Successful in 4s
Replace the inline publish step(s) with the canonical shell-only composite
actions in andras/ci-actions (deploy-pages / docker-publish / forgejo-release).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 14:58:34 +01:00

View file

@ -19,10 +19,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Copy files to nginx pages mount - name: Stage static files
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: | run: |
apt update && apt install -y rsync mkdir -p _site
deploy_dir="$(mktemp -d)" cp -R index.html css js _site/
cp -R index.html css js "$deploy_dir"/
rsync -a --delete --mkpath --chmod=ugo=rwx "$deploy_dir"/ /pages/avoid/ - name: Deploy to nginx pages mount
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: http://forgejo:3000/andras/ci-actions/deploy-pages@main
with:
source: _site
target: avoid