-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (52 loc) · 1.48 KB
/
pdoc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: docs
on:
pull_request:
push:
branches:
- aaron/pixi
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
build-deploy:
strategy:
matrix:
runner: [ParallelHoss]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: "${{ secrets.ARTIFACT_REGISTRY_KEY }}"
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: pixi run docs
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:
needs: build-deploy
uses: probcomp/gen-website-private/.github/workflows/publish_private_website.yml@main
with:
artifact: website