Skip to content

Commit 0307b25

Browse files
committed
Add publishing step
1 parent 9188b48 commit 0307b25

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,24 @@ 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/[email protected]
58+
with:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
BRANCH: gh-pages # The branch the action should deploy to.
61+
BASE_BRANCH: ${{ github.ref }} # What we're deploying.
62+
FOLDER: _build # The folder the action should deploy.
63+
CLEAN: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)