77 tags : ["*"]
88 pull_request :
99 branches : [ master ]
10+ workflow_dispatch :
1011
1112
1213jobs :
2122 fetch-depth : 0
2223
2324 - id : find-tag
24- run : echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> "$GITHUB_OUTPUT"
25+ run : echo "tag=$(git describe --tags `git rev-list --tags=tutorials-* --max-count=1`)" >> "$GITHUB_OUTPUT"
2526
2627
2728 link-check :
3031 steps :
3132 - uses : actions/checkout@v4
3233
33- - uses : prefix-dev/setup-pixi@v0.4 .1
34+ - uses : prefix-dev/setup-pixi@v0.5 .1
3435 with :
3536 cache : true
3637 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'master' }}
4748 with :
4849 ref : ${{ needs.find-tag.outputs.latest-tag }}
4950
50- - uses : prefix-dev/setup-pixi@v0.4 .1
51+ - uses : prefix-dev/setup-pixi@v0.5 .1
5152 continue-on-error : true
5253 id : pixisetup
5354 with :
8081 with :
8182 fetch-depth : 0
8283
83- - uses : prefix-dev/setup-pixi@v0.4 .1
84+ - uses : prefix-dev/setup-pixi@v0.5 .1
8485 with :
8586 cache : true
8687 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'master' }}
@@ -105,29 +106,15 @@ jobs:
105106 ref : ${{ needs.find-tag.outputs.latest-tag }}
106107 fetch-depth : 0
107108
108- - uses : prefix-dev/setup-pixi@v0.4.1
109- continue-on-error : true
110- id : pixisetup
109+ - uses : prefix-dev/setup-pixi@v0.5.1
111110 with :
112111 cache : true
113112 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'master' }}
114113
115114 - name : Build Documentation
116- if : steps.pixisetup.outcome == 'success'
117115 run : pixi run sphinx-build -M html . _build -W --keep-going -a
118116
119117
120- - name : Install mamba
121- if : steps.pixisetup.outcome == 'failure'
122- uses : mamba-org/setup-micromamba@v1
123- with :
124- environment-file : environment.yaml
125-
126- - name : build with mamba
127- if : steps.pixisetup.outcome == 'failure'
128- shell : bash -leo pipefail {0} {0}
129- run : sphinx-build -M html . _build -W --keep-going -a
130-
131118 - uses : actions/upload-artifact@v3
132119 with :
133120 name : tagged-version
@@ -153,7 +140,8 @@ jobs:
153140
154141 deploy :
155142 needs : prepare-pages
156- if : github.ref == 'refs/heads/master'
143+ # only run if master branch or if tag containing "tutorials-*" is pushed
144+ if : github.ref == 'refs/heads/master' || contains(github.ref, 'tags/tutorials-')
157145 runs-on : ubuntu-latest
158146 permissions :
159147 pages : write
0 commit comments