Skip to content

Commit

Permalink
Add gh_pages build workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Marston <[email protected]>
  • Loading branch information
richardmarston committed Jan 16, 2023
1 parent ea6eb21 commit 7a7471d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pages.yaml
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}"

0 comments on commit 7a7471d

Please sign in to comment.