Skip to content

Commit

Permalink
Added publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 5, 2021
1 parent d783a01 commit 197e6ba
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish

on:
workflow_dispatch:
inputs:
version:
description: "Release version"
required: true
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11

- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set release version
run: |
VERSION=${{ github.event.inputs.version }}
./mvnw versions:set -DnewVersion=$VERSION
- name: Build
run: ./mvnw --no-transfer-progress -B --file pom.xml process-resources

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/generated-docs

0 comments on commit 197e6ba

Please sign in to comment.