-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.16 KB
/
Copy pathdocs.yml
File metadata and controls
34 lines (30 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Docs
# Publishes the versioned user-docs site via sidick/amiga-workflows' docs.yml
# (MkDocs Material + mike -> GitHub Pages, each release tag deploys as a
# named version plus the floating `latest` alias). Day-to-day docs edits on
# main do NOT deploy -- the site is refreshed at release time.
#
# workflow_dispatch exists for re-publishing a version after a docs-only
# fix, or for a first publish ahead of the next release tag.
#
# One-time repo setup: Settings -> Pages -> Source: "Deploy from a branch" /
# gh-pages / root -- mike commits the built site to gh-pages itself, it
# does not use the "GitHub Actions" Pages source.
on:
push:
tags: ['v*']
workflow_dispatch:
inputs:
version:
description: 'Version to publish (e.g. v0.1)'
required: true
# A reusable workflow's own `permissions:` block can only narrow, never
# widen, what the calling job already has - so this repo's own contents:
# write grant (mike pushes to gh-pages) has to be declared here too.
permissions:
contents: write
jobs:
docs:
uses: sidick/amiga-workflows/.github/workflows/docs.yml@v1
with:
version: ${{ inputs.version || github.ref_name }}