Update Pages workflow

pull/404/head
Matt Cowley 2022-11-10 20:02:30 +00:00 committed by GitHub
parent 56f716b03f
commit 4512b073c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 10 deletions

View File

@ -5,17 +5,25 @@ on:
branches: branches:
- master - master
permissions:
contents: write
concurrency:
group: gh-pages-workflow
cancel-in-progress: true
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - name: Checkout
uses: actions/checkout@v3
- name: Setup Node - name: Use Node.js
uses: actions/setup-node@v3.5.0 uses: actions/setup-node@v3
with: with:
node-version-file: ".nvmrc" node-version-file: .nvmrc
cache: npm cache: npm
- name: Setup NPM - name: Setup NPM
@ -40,9 +48,8 @@ jobs:
NODE_ENV: production NODE_ENV: production
- name: Deploy master to GitHub Pages - name: Deploy master to GitHub Pages
uses: JamesIves/github-pages-deploy-action@2.0.0 uses: JamesIves/github-pages-deploy-action@v4
env: with:
ACCESS_TOKEN: ${{ secrets.DEV_GITHUB_TOKEN }} folder: dist
BASE_BRANCH: master clean: true
BRANCH: gh-pages single-commit: true
FOLDER: dist