Skip to content

Update static-to-pages.yml #42

Update static-to-pages.yml

Update static-to-pages.yml #42

Workflow file for this run

name: Deploy to GitHub page
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18.12.1'
- name: Insall dependencies
run: npm install
- name: Compile
run: export CI=false && npm run build && tree ./site/dist -a && cp package.json site
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: ./site
fqdn: cellscript.io
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}