Skip to content

ci: update publish documentation default branch (#256) #87

ci: update publish documentation default branch (#256)

ci: update publish documentation default branch (#256) #87

Workflow file for this run

name: Publish documentation
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+*
permissions: {}
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag: v3.5.3
- name: Fetch all git branches
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- uses: actions/setup-node@bea5baf987ba7aa777a8a0b4ace377a21c45c381 # tag: v3.8.0
with:
node-version: 18.x
- run: yarn --frozen-lockfile
- run: yarn build:docs
- uses: malept/github-action-gh-pages@e151760357583e2f9152f8e8c8658ceb3ccf3d64 # tag: v1.3.1
with:
defaultBranch: main
gitCommitEmail: 'github-actions@github.com'
gitCommitMessage: 'Publish [skip ci]'
gitCommitUser: 'github-actions'
showUnderscoreFiles: true
versionDocs: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}