Skip to content
Myr

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 file

Take it

chore: publish docs automaticallyMichel Weststratebefore adoptionb6d92f4

lines 1–6why, one step back
1# This is a basic workflow to help you get started with Actions
23name: Public docs45on:6 push:

fix: release and publish from 'main' rather than 'master' branchMichel Weststratebefore adoption82acc40

line 7why, one step back
7 branches: [main]

chore: publish docs automaticallyMichel Weststratebefore adoptionb6d92f4

lines 8–21why, one step back
8
9 # 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 it

fix: Upgrade Github actions to Node 16 attempt 1Michel Weststratebefore adoption9d4ea93

line 22why, one step back
22 - uses: actions/checkout@v3

chore: publish docs automaticallyMichel Weststratebefore adoptionb6d92f4

lines 23–24why, one step back
23 - name: Build website
24 run: cd website && yarn && yarn build

chore: fix docs deployment attempt 3Michel Weststratebefore adoption144f886

lines 25–32why, one step back
25 - name: Deploy to GitHub Pages
26 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 }}