Skip to content

Deploy Pages

Deploy Pages #9

Workflow file for this run

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 }}