Files
libart-paperback/.gitea/workflows/publish-docs-nightly.yaml
R.Y.A.N e5fea30624
All checks were successful
on-push / build-and-test (push) Successful in 27s
publish-docs-nightly / build-and-publish (push) Successful in 16s
Fix automated documentation build/publish
2026-01-22 23:50:59 +01:00

32 lines
1.1 KiB
YAML

name: publish-docs-nightly
on:
schedule:
- cron: '0 5 * * *'
jobs:
build-and-publish:
if: github.repository == 'art/libart-paperback' && github.ref == 'refs/heads/master'
runs-on: linux
container: code.helloryan.se/art/infra/buildenv/x86_64-fedora_42-unified:latest
steps:
- name: Configure repository access
run: |
git config --global http.$GITHUB_SERVER_URL/.extraheader "Authorization: token ${{ secrets.ACT_RUNNER_TOKEN }}"
- name: Clone source package
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git /source
cd /source
git checkout $GITHUB_SHA
- name: Build documentation
run: |
cd /source
b alias{docs-private}
- name: Configure MinIO CLI
run: |
mc alias set garage https://buckets.helloryan.se/ ${{ secrets.DOCS_BUCKET_ACCESS_KEY }} ${{ secrets.DOCS_BUCKET_SECRET_KEY }}
- name: Publish documentation
run: |
cd /source/docs/html
mc cp -r * garage/docs.helloryan.se/libart-paperback/