Skip to content

Commit

Permalink
[issue-1351] - Adding a GitHub action workflow to deploy documentatio…
Browse files Browse the repository at this point in the history
…n on GitHub Pages
  • Loading branch information
fabiobrz committed Jan 18, 2025
1 parent b1bbb9b commit f91ad3a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Deploy to GitHub Pages
on:
workflow_dispatch:
inputs:
arquillian-cube-ref:
description: 'The Arquillian Cube branch that will be used to build and deploy the documentation'
required: false
default: "2.0.0.Alpha1"
type: string

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.arquillian-cube-ref }}
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: maven
- name: Build with Maven
run: ./mvnw --batch-mode --no-transfer-progress clean package -pl build/docs
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/docs/target/generated-docs/
git-config-name: Alien Ike
git-config-email: [email protected]

0 comments on commit f91ad3a

Please sign in to comment.