From f91ad3aed3856bcde25ed27b78a5cfd2d6568890 Mon Sep 17 00:00:00 2001 From: Fabio Burzigotti Date: Sat, 18 Jan 2025 12:54:34 +0100 Subject: [PATCH] [issue-1351] - Adding a GitHub action workflow to deploy documentation on GitHub Pages --- .github/workflows/deploy-docs.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 000000000..b0e3fc7d8 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -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: arquillian-team@lists.jboss.org