Skip to content
Myr

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 file

Take 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 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(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 8–11why, one step back
8
9 # Allows you to run this workflow manually from the Actions tab10 workflow_dispatch:11

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

lines 12–13why, one step back
12permissions: {}
13

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 14–19why, one step back
14# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15jobs: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-latest

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

lines 20–21why, one step back
20 permissions:
21 contents: write

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 22–25why, one step back
22
23 # 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 it

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

line 26why, one step back
26 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

chore: bump node version in GH actionsMichel Weststratebefore adoptioncd4c011

line 27why, one step back
27 with:

ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241)Mark Eriksonbefore adoption7cab3c2

lines 28–30why, one step back
28 persist-credentials: false
29 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.030 with:

chore: bump node version in GH actionsMichel Weststratebefore adoptioncd4c011

line 31why, one step back
31 node-version: 24

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 32–35why, one step back
32 - name: Build website
33 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 back
36 uses: crazy-max/ghaction-github-pages@59173cb633d9a3514f5f4552a6a3e62c6710355c # v2.7.0

chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9

lines 37–41why, one step back
37 with:
38 target_branch: gh-pages39 build_dir: website/build40 env:41 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}