-
-
Notifications
You must be signed in to change notification settings - Fork 11
55 lines (53 loc) · 1.58 KB
/
deploy-pages.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
53
54
55
name: Deploy Pages
on:
workflow_dispatch:
inputs:
version:
description: "Deploy version"
required: true
type: string
workflow_call:
inputs:
version:
description: "Deploy version"
required: true
type: string
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Resolve version
id: resolve
run: |
VERSION="${{ inputs.version }}"
VERSION="${VERSION:=${{ github.event.inputs.version }}}"
echo "version=${VERSION//v}" >> $GITHUB_OUTPUT
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 21
- name: Restore Gradle cache
id: cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/yarn
~/.gradle/nodejs
~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/checkout@v3
with:
submodules: recursive
- run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- run: ./gradlew :npm-publish-docs:mkdocsPublish -Pversion='${{ steps.resolve.outputs.version }}'
env:
GRGIT_USER: ${{ github.actor }}
GRGIT_PASS: ${{ github.token }}