Compare commits

..

2 Commits

Author SHA1 Message Date
e5fea30624 Fix automated documentation build/publish
All checks were successful
on-push / build-and-test (push) Successful in 27s
publish-docs-nightly / build-and-publish (push) Successful in 15s
2026-01-22 23:50:59 +01:00
24764969cc Use relative location in repositories.manifest
All checks were successful
on-push / build-and-test (push) Successful in 25s
2026-01-21 00:29:45 +01:00
2 changed files with 6 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
name: publisb-docs-nightly name: publish-docs-nightly
on: on:
schedule: schedule:
@@ -6,30 +6,18 @@ on:
jobs: jobs:
build-and-publish: build-and-publish:
if: github.repository == 'art/libart-paperback' if: github.repository == 'art/libart-paperback' && github.ref == 'refs/heads/master'
runs-on: linux runs-on: linux
container: code.helloryan.se/art/infra/buildenv/x86_64-fedora_42-unified:latest container: code.helloryan.se/art/infra/buildenv/x86_64-fedora_42-unified:latest
volumes:
- /source
- /build
steps: steps:
- name: Create directories
run: |
mkdir -p /source /build
- name: Configure repository access - name: Configure repository access
run: | run: |
git config --global http.$GITHUB_SERVER_URL/.extraheader "Authorization: token ${{ secrets.ACT_RUNNER_TOKEN }}" git config --global http.$GITHUB_SERVER_URL/.extraheader "Authorization: token ${{ secrets.ACT_RUNNER_TOKEN }}"
- name: Configure build directory
run: |
bpkg create -d /build cc config.cxx=clang++ config.cc.coptions="-Wall -Werror -Wno-unknown-pragmas -Wno-overloaded-virtual"
- name: Clone source package - name: Clone source package
run: | run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git /source
cd /source cd /source
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git .
git checkout $GITHUB_SHA git checkout $GITHUB_SHA
- name: Initialize package
run: |
bdep init -A /build -d /source
- name: Build documentation - name: Build documentation
run: | run: |
cd /source cd /source
@@ -39,5 +27,5 @@ jobs:
mc alias set garage https://buckets.helloryan.se/ ${{ secrets.DOCS_BUCKET_ACCESS_KEY }} ${{ secrets.DOCS_BUCKET_SECRET_KEY }} mc alias set garage https://buckets.helloryan.se/ ${{ secrets.DOCS_BUCKET_ACCESS_KEY }} ${{ secrets.DOCS_BUCKET_SECRET_KEY }}
- name: Publish documentation - name: Publish documentation
run: | run: |
cd /build/libart-paperback/docs/html cd /source/docs/html
mc cp -r * garage/docs.helloryan.se/libart-paperback/ mc cp -r * garage/docs.helloryan.se/libart-paperback/

View File

@@ -3,8 +3,8 @@ summary: libart-paperback project repository
: :
role: prerequisite role: prerequisite
location: https://code.helloryan.se/art/libart-validation.git##HEAD location: ../libart-validation.git##HEAD
: :
role: prerequisite role: prerequisite
location: https://code.helloryan.se/art/libart-unicode.git##HEAD location: ../libart-unicode.git##HEAD