docs-public.yml
This file
Path
.github/workflows/docs-public.yml
41 lines · 1.3 KiB · YAML
Last changed by
ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2
History of this fileTake it
The walk stopped after 200 commits: lines older than 07f5cc9 point at it.
chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
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(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 8–11why, one step back89 # Allows you to run this workflow manually from the Actions tab10 workflow_dispatch:11ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2
lines 12–13why, one step back12permissions: {}13chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 14–19why, one step back14# A workflow run is made up of one or more jobs that can run sequentially or in parallel15jobs:16 # This workflow contains a single job called "build"17 build:18 # The type of runner that the job will run on19 runs-on: ubuntu-latestci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2
lines 20–21why, one step back20 permissions:21 contents: writechore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 22–25why, one step back2223 # Steps represent a sequence of tasks that will be executed as part of the job24 steps:25 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access itci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2
line 26why, one step back26 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1chore: bump node version in GH actionsMichel Weststratebefore adoptioncd4c011
line 27why, one step back27 with:ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2
lines 28–30why, one step back28 persist-credentials: false29 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.030 with:chore: bump node version in GH actionsMichel Weststratebefore adoptioncd4c011
line 31why, one step back31 node-version: 24chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 32–35why, one step back32 - name: Build website33 run: cd website && yarn && yarn build34 - name: Deploy to GitHub Pages35 if: success()ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2
line 36why, one step back36 uses: crazy-max/ghaction-github-pages@59173cb633d9a3514f5f4552a6a3e62c6710355c # v2.7.0chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 37–41why, one step back37 with:38 target_branch: gh-pages39 build_dir: website/build40 env:41 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}