File tree Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ permissions:
9
9
contents : write
10
10
11
11
jobs :
12
- deploy :
12
+ build :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v4
33
33
git config user.email 'github-actions[bot]@users.noreply.github.com'
34
34
- name : Build Docs Website
35
35
run : uv run mike deploy --push develop
36
+
37
+ deploy :
38
+ needs : build
39
+ environment :
40
+ name : github-pages
41
+ url : ${{ steps.deployment.outputs.page_url }}
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - name : Checkout
45
+ uses : actions/checkout@v4
46
+ with :
47
+ ref : gh-pages
48
+ - name : Setup Pages
49
+ uses : actions/configure-pages@v5
50
+ - name : Upload artifact
51
+ uses : actions/upload-pages-artifact@v3
52
+ with :
53
+ path : ' .'
54
+ - name : Deploy to GitHub Pages
55
+ id : deployment
56
+ uses : actions/deploy-pages@v4
57
+
Original file line number Diff line number Diff line change 7
7
permissions :
8
8
contents : write
9
9
jobs :
10
- deploy :
10
+ build :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v4
31
31
git config user.email 'github-actions[bot]@users.noreply.github.com'
32
32
- name : Build Docs Website
33
33
run : uv run mike deploy --push --update-aliases ${{ github.event.release.tag_name }} latest
34
+
35
+ deploy :
36
+ needs : build
37
+ environment :
38
+ name : github-pages
39
+ url : ${{ steps.deployment.outputs.page_url }}
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - name : Checkout
43
+ uses : actions/checkout@v4
44
+ with :
45
+ ref : gh-pages
46
+ - name : Setup Pages
47
+ uses : actions/configure-pages@v5
48
+ - name : Upload artifact
49
+ uses : actions/upload-pages-artifact@v3
50
+ with :
51
+ path : ' .'
52
+ - name : Deploy to GitHub Pages
53
+ id : deployment
54
+ uses : actions/deploy-pages@v4
55
+
You can’t perform that action at this time.
0 commit comments