name: on-push on: workflow_dispatch jobs: publish-docs: runs-on: linux container: code.helloryan.se/infra/buildenv/f44-x86_64-unified:latest steps: - name: Prepare environment run: | mkdir /src - name: Configure repository access run: | git config --global http.$GITHUB_SERVER_URL/.extraheader "Authorization: token ${{ secrets.PACKAGE_PULL_TOKEN }}" - name: Configure MinIO CLI run: | mc alias set garage https://buckets.helloryan.se/ ${{ secrets.BITSHIFT_S3_KEY_ID }} ${{ secrets.BITSHIFT_S3_SECRET_KEY }} - name: Fetch repository run: | cd /src git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git . git checkout "$GITHUB_SHA" - name: Create build configuration run: | bpkg create -d /build cc config.cxx=g++ config.cc.coptions="-Wall -Werror" - name: Initialize run: | cd /src bdep init -A /build - name: Build Documentation run: | cd /src b alias{docs} - name: Publish Documentation run: | cd /build/bitshift-validate/docs/html mc mirror --remove --overwrite . garage/validate.bitshift.helloryan.se/