-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (41 loc) · 1.15 KB
/
publish-web.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
name: Publish Web
on:
workflow_dispatch:
inputs:
script:
description: "Select the script to execute"
required: true
type: choice
options:
- push-new-version
- overwrite-latest-version
- overwrite-past-version
version:
description: "Version to publish"
required: true
type: string
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install mike mkdocs-material mkdocs-glightbox
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Run selected script
working-directory: ./custom-versioning
run: |
./${{ github.event.inputs.script }}.sh ${{ github.event.inputs.version }}