Skip to content

Fix site path for github actions. #3

Fix site path for github actions.

Fix site path for github actions. #3

Workflow file for this run

name: Java CI
on:
push:
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 📂
uses: actions/checkout@v2
- name: Set up JDK 11 ⚙️
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven packages ⛓️
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven 🔧
run: mvn --batch-mode --update-snapshots verify -fae
- name: Deploy 🚀
if: github.ref == 'refs/heads/master'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: releng/com.obeonetwork.mbse.capella.vpx.site/target/repository
target-folder: nightly
single-commit: true # Remove history in gh-pages
clean: true # Remove deprecated files
- name: Get the tag version 🏷️
id: get_version
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
- name: Deploy Release 🚀🏷️
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: releng/com.obeonetwork.mbse.capella.vpx.site/target/repository
target-folder: releases/${{ steps.get_version.outputs.TAG_VERSION }}
single-commit: true # Remove history in gh-pages
clean: true # Remove deprecated files