Skip to content

Commit af4b1f7

Browse files
authored
Add upload to gh-pages to workflow
1 parent 96773e3 commit af4b1f7

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/documentation.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ name: Deploy Documentation
33
on:
44
push:
55
branches: [main]
6-
pull_request:
7-
branches: [main]
86

97
env:
108
CARGO_TERM_COLOR: always
119

1210
jobs:
13-
build:
11+
build-documentation:
1412
runs-on: ubuntu-latest
1513
steps:
1614
- uses: actions/checkout@v2
@@ -39,3 +37,18 @@ jobs:
3937
with:
4038
name: documentation
4139
path: public
40+
41+
release-documentation:
42+
needs: [build-documentation]
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Download artifacts
46+
uses: actions/download-artifact@v1
47+
with:
48+
name: documentation
49+
path: public
50+
- name: Deploy documentation to gh-pages
51+
uses: peaceiris/actions-gh-pages@v3
52+
with:
53+
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
publish_dir: ./public

0 commit comments

Comments
 (0)