Skip to content

Pin [email protected] for check-plugin CI job

Pin [email protected] for check-plugin CI job #1521

Workflow file for this run

name: Publish Docusaurus
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
deploy:
name: Publish Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
- name: Install dependencies
run: cd docusaurus/ && yarn install:ci
- name: Build website
run: cd docusaurus/ && yarn build
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Publish Docusaurus
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher' }}
with:
deploy_key: ${{ secrets.GH_PAGES_DEPLOY_KEY }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./docusaurus/build
# Remove .gitignore from excludes
exclude_assets: ''
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com