Skip to content

cron update

cron update #66

Workflow file for this run

name: 'Deploy docs'
on:
push:
branches: [master]
jobs:
deploy:
name: 'Deploy docs with npm run deploy'
permissions:
contents: write
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: Cache packages
uses: actions/cache@v3
with:
key: docs-cache-${{ hashFiles('package-lock.json') }}
path: |
.docusaurus
- name: Install packages
run: npm ci
- name: Build the docs
run: npm run build
- name: Deploy docs to terser/terser.github.io
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
publish_dir: ./build
external_repository: terser/terser.github.io
publish_branch: master
deploy_key: ${{ secrets.TERSER_ORG_DEPLOY_KEY }}