Link to Settings > Pages
Source
After pushing to Branch: master, generate and push the completed File.
You can check the progress of the job on GitHub (Actions > All workflows).
name: GitHub Pages
on:
push:
branches:
- master
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Generate
run: npm run generate
- name: Deploy
run: |
git config --global user.email "exmaple@gmai.com"
git config --global user.name "test"
git add .
git commit -m 'deploy'
git push origin master