Skip to content

Commit b6dd1e9

Browse files
committed
Add publishing step
1 parent 9188b48 commit b6dd1e9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,23 @@ jobs:
4040
with:
4141
name: html
4242
path: _build/python-fluent
43+
44+
publish:
45+
name: publish
46+
needs: [build]
47+
# if: github.event_name == 'push'
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
- name: Download artifact
52+
uses: actions/download-artifact@v2
53+
with:
54+
name: html
55+
path: _build
56+
- name: Deploy 🚀
57+
uses: JamesIves/github-pages-deploy-action@releases/v4
58+
with:
59+
branch: gh-pages # The branch the action should deploy to.
60+
folder: _build # The folder the action should deploy.
61+
clean: true # Automatically remove deleted files from the deploy branch
62+
dry_run: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)