ci: move to pages server
All checks were successful
/ render (push) Successful in 37s

This commit is contained in:
Antoine Martin 2025-03-31 20:28:00 -04:00
parent 2f88882e0d
commit aec1460de9
Signed by: ayakael
GPG key ID: D62A472A4AA7D541
6 changed files with 18 additions and 48 deletions

View file

@ -11,28 +11,27 @@ jobs:
steps:
- name: Environment setup
run: |
apk add git ikiwiki po4a perl-yaml-tiny tree nodejs
apk add git ikiwiki po4a perl-yaml-tiny tree nodejs imagemagick-perlmagick imagemagick imagemagick-jpeg findutils bash imagemagick-webp
- name: Repo pull
uses: https://github.com/actions/checkout@v4
uses: actions/checkout@v4
with:
fetch-depth: 1
token: ${{ secrets.PAGES_TOKEN }}
- name: Public repo pull
uses: https://github.com/actions/checkout@v4
- name: Pages repo pull
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: public
ref: pages
path: public
token: ${{ secrets.PAGES_TOKEN }}
- name: Render website
run: ikiwiki --setup ikiwiki.setup
- name: Website upload
run: |
rm -Rf public/.forgejo
mkdir -p public/.forgejo/workflows
cp .forgejo/workflows/deploy.yaml public/.forgejo/workflows/.
cp .pages-domains public/.domains
cp .pages-redirect public/_redirects
git log -1 --pretty=%B > commit.txt
cd public
find -name 'index.html' -type 'l' -delete
find -name 'index.fr.html' -exec bash -c 'ln -s "${0/.*\/}" "${0/.fr/}"' {} \;
date > generated.txt
# Note: the following account information will not work on GHES
git config user.name "forgejo-actions[bot]"