Skip to content

Version

Version #42

name: Build and Preview Site
on:
pull_request:
branches: [master]
types: [opened, synchronize, reopened]
jobs:
site-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@master
- name: Install and Build 🔧
run: |
npm install
node -v
npm run build
- name: Broken Link Check 🔗
uses: technote-space/broken-link-checker-action@v2
with:
target: ./public/**/*.html
- name: Zip Site
run: |
bash script.sh
- name: Upload files
uses: actions/upload-artifact@master
with:
name: public-dir
path: public-dir.zip
retention-days: 1