Skip to content

require Node.js 16; recommend running gulp via npx #6

require Node.js 16; recommend running gulp via npx

require Node.js 16; recommend running gulp via npx #6

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm i
- name: Build and deploy to GitHub Pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git config --local user.name github-actions-bot
git config --local user.email ${{ github.actor }}@users.noreply.github.com
npx gulp deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}