Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
- name: Build
run: |
npm ci
npm run export
# creates a .nojekyll file in the out directory to tell GitHub Pages not to treat the site as a Jekyll project.
touch out/.nojekyll
- name: Deploy to GitHub Pages
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: out
ssh-key: ${{ secrets.DEPLOY_KEY }}