-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Richard Marston <[email protected]>
- Loading branch information
1 parent
ea6eb21
commit 7a7471d
Showing
1 changed file
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build-website: | ||
|
||
runs-on: ubuntu-latest | ||
name: Build website | ||
steps: | ||
- name: git-checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install npm packages | ||
run: npm install | ||
|
||
- name: Create libraries | ||
run: npm run build | ||
|
||
- name: Create website | ||
run: | | ||
mkdir html | ||
cp -r index.html dist html | ||
- name: Push | ||
uses: s0/git-publish-subdir-action@develop | ||
env: | ||
REPO: self | ||
BRANCH: dist | ||
FOLDER: html | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to get a token | ||
MESSAGE: "Build gh pages website: ({sha}) {msg}" |