You've already forked libart-paperback
32 lines
1.1 KiB
YAML
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/
|