docs-public.yml
This file
Path
.github/workflows/docs-public.yml
32 lines · 987 bytes · YAML
Last changed by
fix: Upgrade Github actions to Node 16 attempt 1Michel Weststratebefore adoption9d4ea93
History of this fileTake it
chore: publish docs automaticallyMichel Weststratebefore adoptionb6d92f4
lines 1–6why, one step back1# This is a basic workflow to help you get started with Actions23name: Public docs45on:6 push:fix: release and publish from 'main' rather than 'master' branchMichel Weststratebefore adoption82acc40
line 7why, one step back7 branches: [main]chore: publish docs automaticallyMichel Weststratebefore adoptionb6d92f4
lines 8–21why, one step back89 # Allows you to run this workflow manually from the Actions tab10 workflow_dispatch:1112# A workflow run is made up of one or more jobs that can run sequentially or in parallel13jobs:14 # This workflow contains a single job called "build"15 build:16 # The type of runner that the job will run on17 runs-on: ubuntu-latest1819 # Steps represent a sequence of tasks that will be executed as part of the job20 steps:21 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access itfix: Upgrade Github actions to Node 16 attempt 1Michel Weststratebefore adoption9d4ea93
line 22why, one step back22 - uses: actions/checkout@v3chore: publish docs automaticallyMichel Weststratebefore adoptionb6d92f4
lines 23–24why, one step back23 - name: Build website24 run: cd website && yarn && yarn buildchore: fix docs deployment attempt 3Michel Weststratebefore adoption144f886
lines 25–32why, one step back25 - name: Deploy to GitHub Pages26 if: success()27 uses: crazy-max/ghaction-github-pages@v228 with:29 target_branch: gh-pages30 build_dir: website/build31 env:32 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}