We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ae715 commit 1d19acbCopy full SHA for 1d19acb
1 file changed
.github/workflows/deploy.yaml
@@ -4,6 +4,8 @@ on:
4
push:
5
branches:
6
- main
7
+ - v1.0
8
+ - v2.0
9
workflow_dispatch: # Allow manual triggering
10
11
permissions:
@@ -41,10 +43,18 @@ jobs:
41
43
pip install -r requirements.txt
42
44
45
- name: Deploy v1.0 docs
46
+ if: github.ref == 'refs/heads/v1.0'
47
run: |
48
mike deploy v1.0 -p --update-aliases --ignore-remote-status
49
50
- name: Deploy v2.0 docs
51
+ if: github.ref == 'refs/heads/v2.0'
52
+ run: |
53
+ mike deploy v2.0 latest -p --update-aliases --ignore-remote-status
54
+ mike set-default latest --ignore-remote-status
55
+
56
+ - name: Deploy from main to v2.0 (latest)
57
+ if: github.ref == 'refs/heads/main'
58
59
mike deploy v2.0 latest -p --update-aliases --ignore-remote-status
60
mike set-default latest --ignore-remote-status
0 commit comments