Skip to content

build(deps): bump actions/checkout from 3 to 4 (#232) #52

build(deps): bump actions/checkout from 3 to 4 (#232)

build(deps): bump actions/checkout from 3 to 4 (#232) #52

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@v4
with:
node-version: '16.x'
- name: Install
run: npm install
- name: Run tests
run: npm test
- name: Build example
run: |
npm run --prefix example build
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 }}