Update packages #36
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
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
name: Deploy to Github Pages | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
name: Checkout | |
- name: Cache Node Modules | |
id: cache-node-modules | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm install --legacy-peer-deps | |
- name: Build | |
run: | | |
npm run build | |
touch build/.nojekyll | |
echo "clivetran.xyz" > CNAME | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build |