-
Notifications
You must be signed in to change notification settings - Fork 119
48 lines (40 loc) · 1.13 KB
/
publish-docs.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
name: Publish Docs
on:
workflow_call:
inputs:
version:
required: true
description: Tag version to perform release
type: string
permissions:
contents: write
jobs:
publish-docs:
name: Publish Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout ${{inputs.version}}
with:
ref: ${{inputs.version}}
- name: git author
run: |
git config --global user.name "SmallRye CI"
git config --global user.email "[email protected]"
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: docs release ${{inputs.version}}
run: |
cd documentation
mvn package
pipx install pipenv
pipenv install
git fetch origin gh-pages --depth=1
pipenv run mike deploy --config-file=mkdocs.yaml --push --update-aliases "${PROJECT_VERSION}" Latest
env:
PROJECT_VERSION: ${{inputs.version}}