Skip to content

Bump crazy-max/ghaction-github-pages from 1 to 4 (#259) #73

Bump crazy-max/ghaction-github-pages from 1 to 4 (#259)

Bump crazy-max/ghaction-github-pages from 1 to 4 (#259) #73

Workflow file for this run

name: Deploy
on:
push:
branches:
- default
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: lts/*
- name: Install
run: npm install
- name: Run tests
run: npm test
- name: Build example
run: |
npm run example
mkdir _deploy
cp example/bundle.js example/index.html _deploy
- name: Publish site
if: success()
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: _deploy
keep_history: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}