-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d979ac
commit 4d717fa
Showing
1 changed file
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
name: Deploy GitHub Pages | ||
name: Build and Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master # Or the name of your default branch | ||
paths: | ||
- 'docs/**' | ||
- master # Set a branch to deploy from. | ||
|
||
jobs: | ||
deploy: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Setup GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
- name: Build and Deploy | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
with: | ||
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
publish_dir: ./docs | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: docs # The folder the action should deploy. | ||
CLEAN: true # Automatically remove deleted files from the deploy branch | ||
COMMIT_MESSAGE: 'Deployed documentation to GitHub Pages' |