1.2.2 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Site Builds | |
on: | |
release: | |
types: [ published ] | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Project Version' | |
required: false | |
default: '' | |
jobs: | |
build-project: | |
name: 'Build and Deploy' | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
java: [ '8' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
check-latest: true | |
cache: maven | |
- name: Build Project Site | |
run: mvn site site:stage -Dchangelist=$VERSION | |
env: | |
VERSION: ${{ github.event.inputs.version }} | |
- name: Deploy Site | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/staging |