build docs pr #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish private b3d.gen.dev | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- aaron/pixi | ||
permissions: | ||
id-token: write | ||
jobs: | ||
prepare: | ||
strategy: | ||
matrix: | ||
runner: [ParallelHoss] | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Authenticate gcloud | ||
id: auth | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: "${{ secrets.ARTIFACT_REGISTRY_KEY }}" | ||
- name: Setup gcloud | ||
uses: google-github-actions/setup-gcloud@v2 | ||
- name: Run pixi update | ||
run: | | ||
# install pixi | ||
curl -fsSL https://pixi.sh/install.sh | bash | ||
export PATH=/home/runner/.pixi/bin:$PATH | ||
# install pipx and inject gcp backend | ||
pixi global install pipx | ||
pipx install keyring | ||
pipx inject keyring \ | ||
keyrings.google-artifactregistry-auth \ | ||
--index-url \ | ||
https://pypi.org/simple | ||
# build docs | ||
pixi run docs | ||
- name: Prepend timestamp to index.html | ||
run: | | ||
echo "Published at: $(date)<br/>" | cat - ./docs/static/index.html > temp && mv temp ./docs/static/index.html | ||
- name: Create website artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: website | ||
path: ./docs/static | ||
publish: | ||
Check failure on line 58 in .github/workflows/pdoc.yml
|
||
needs: prepare | ||
uses: probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main | ||
with: | ||
artifact: website |