Skip to content

Commit db1a17e

Browse files
NaN
1 parent 430327f commit db1a17e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ on:
55

66
jobs:
77
mike-deploy:
8-
98
runs-on: ubuntu-latest
10-
9+
strategy:
10+
matrix:
11+
version: ['v1', 'v2']
1112
steps:
1213
- uses: actions/checkout@v4
1314
with:
1415
token: ${{ secrets.GH_TOKEN }}
16+
ref: ${{ matrix.version }}
1517
- name: Set up Python
1618
uses: actions/setup-python@v3
1719
with:
@@ -26,11 +28,7 @@ jobs:
2628
run: |
2729
git config user.name "$(git log -n 1 --pretty=format:%an)"
2830
git config user.email "$(git log -n 1 --pretty=format:%ae)"
29-
- name: Build v1
30-
run: |
31-
git fetch origin deploy:deploy
32-
mike deploy --push --branch deploy --rebase v1
33-
- name: Build v2
31+
- name: Build
3432
run: |
3533
git fetch origin deploy:deploy
36-
mike deploy --push --branch deploy --rebase v2
34+
mike deploy --push --branch deploy --rebase ${{ matrix.version }}

0 commit comments

Comments
 (0)