-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (43 loc) · 1.26 KB
/
publish-b.yml
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
47
48
49
50
51
52
name: Publish branch
on:
push:
branches:
- "*.*.x"
workflow_dispatch:
inputs:
update_aliases:
description: Whether to update mike aliases
required: false
type: boolean
default: true
permissions:
contents: write
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: helmwave/[email protected]
with:
version: '0.36.0'
- run: helmwave schema > schema.json
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Set user
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Mike with updating aliases
if: ${{ github.event.created || inputs.update_aliases }}
run: |
mike deploy --push --force --update-aliases ${{ github.ref_name }} latest --rebase
- name: Mike
if: ${{ !github.event.created && !inputs.update_aliases }}
run: |
mike deploy --force --push ${{ github.ref_name }}