2020-04-03 17:34:56 +00:00
|
|
|
name: Deploy to GitHub Pages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-06-30 11:58:39 +00:00
|
|
|
- main
|
2020-04-03 17:34:56 +00:00
|
|
|
jobs:
|
|
|
|
build-and-deploy:
|
2022-02-20 19:24:16 +00:00
|
|
|
concurrency: ci-${{ github.ref }}
|
2020-04-03 17:34:56 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-20 19:24:16 +00:00
|
|
|
- name: Checkout 🛎️
|
|
|
|
uses: actions/checkout@v2
|
2020-04-03 17:34:56 +00:00
|
|
|
|
2023-04-21 13:32:11 +00:00
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
|
2022-02-20 19:24:16 +00:00
|
|
|
- name: Install and Build 🔧
|
|
|
|
run: |
|
|
|
|
npm ci
|
|
|
|
npm run build
|
2020-04-03 17:34:56 +00:00
|
|
|
|
2022-02-20 19:24:16 +00:00
|
|
|
- name: Deploy 🚀
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.2.5
|
|
|
|
with:
|
|
|
|
branch: gh-pages
|
|
|
|
folder: dist
|