blockcore-notes/.github/workflows/build.yml

31 lines
563 B
YAML
Raw Permalink Normal View History

name: Build and Publish Web Site
on:
push:
branches:
- main
jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
name: Checkout
- name: Build
run: |
npm install
npm run build
2023-02-28 08:50:58 +00:00
- name: Redirect 404 to Index for SPA
run: cp dist/index.html dist/404.html
2023-02-12 00:55:34 +00:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: notes.blockcore.net