Skip to content

Commit f370776

Browse files
added netlify deployment (#14)
* added netlify deploy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * updated workflow * added site id Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f418be8 commit f370776

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/documentation.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,15 @@ jobs:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
2525
publish_dir: docs/_build/html
2626
force_orphan: true
27+
28+
- name: Deploy to Netlify
29+
uses: nwtgck/[email protected]
30+
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master'
31+
with:
32+
publish-dir: "docs/_build/html"
33+
github-token: ${{secrets.GITHUB_TOKEN}}
34+
deploy-message: "Netlify Deployment from GitHub Actions"
35+
env:
36+
NETLIFY_AUTH_TOKEN: ${{secrets.NETLIFY_AUTH_TOKEN}}
37+
NETLIFY_SITE_ID: ${{secrets.NETLIFY_SITE_ID}}
38+
timeout-minutes: 1

0 commit comments

Comments
 (0)