Skip to content

Commit 1d19acb

Browse files
committed
chore: Change main branch
1 parent 18ae715 commit 1d19acb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
- v1.0
8+
- v2.0
79
workflow_dispatch: # Allow manual triggering
810

911
permissions:
@@ -41,10 +43,18 @@ jobs:
4143
pip install -r requirements.txt
4244
4345
- name: Deploy v1.0 docs
46+
if: github.ref == 'refs/heads/v1.0'
4447
run: |
4548
mike deploy v1.0 -p --update-aliases --ignore-remote-status
4649
4750
- 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'
4858
run: |
4959
mike deploy v2.0 latest -p --update-aliases --ignore-remote-status
5060
mike set-default latest --ignore-remote-status

0 commit comments

Comments
 (0)