Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Add GitHub Meta Files
Browse files Browse the repository at this point in the history
  • Loading branch information
gmitch215 committed Aug 22, 2023
1 parent b800a60 commit 0db819b
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: daily
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build Project

on:
push:
branches: [ master, ver/* ]
pull_request:
branches: [ master, ver/* ]

workflow_dispatch:

jobs:

setup:
runs-on: ubuntu-latest
name: Maven Setup
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Setup Project
run: mvn clean install dependency:tree -DskipTests

build:
needs: setup
strategy:
matrix:
java-version: [8, 11, 16, 17, 18, 19]

runs-on: ubuntu-latest
name: Build Java ${{ matrix.java-version }}
steps:
- uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'maven'
- name: Build Project
run: mvn clean package -Dmaven.javadoc.skip=true

deploy:
runs-on: ubuntu-latest
needs: build
name: Deploy JavaDocs
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' }}
steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'

- name: Build Project
run: mvn package -DskipTests

- name: Build JavaDocs
run: bash javadoc.sh ${GITHUB_SHA::7}
30 changes: 30 additions & 0 deletions javadoc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git fetch origin gh-pages

rm -rf docs/
mkdir ./docs

cp -R target/apidocs/* docs/

git switch -f gh-pages

for dir in ./*
do
if [ "$dir" == "./docs" ]; then
continue
fi

rm -rf "$dir"
done

cp -Rfv ./docs/* ./
rm -rf ./docs

echo "vortexsidebars.teaminceptus.us" > CNAME

git add .
git commit -m "Update JavaDocs ($1)"
git push -f origin gh-pages

0 comments on commit 0db819b

Please sign in to comment.