Skip to content

Commit 7c587de

Browse files
committed
Add publishing step
1 parent 9188b48 commit 7c587de

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+
- name: Download artifact
51+
uses: actions/download-artifact@v2
52+
with:
53+
name: html
54+
path: _build
55+
- name: Deploy 🚀
56+
uses: JamesIves/github-pages-deploy-action@3.7.1
57+
with:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
BRANCH: gh-pages # The branch the action should deploy to.
60+
BASE_BRANCH: ${{ github.ref }} # What we're deploying.
61+
FOLDER: _build # The folder the action should deploy.
62+
CLEAN: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)