From 0ac72baec1659f8fb7f9faf0e42d4368cd569248 Mon Sep 17 00:00:00 2001 From: Gabriel Goulis Date: Sun, 22 Sep 2024 11:51:36 -0500 Subject: [PATCH] Website test --- .github/workflows/FetchChanges.yml | 28 --------------- .github/workflows/deploy-cimet.yml | 57 ------------------------------ .github/workflows/pages.yml | 33 +++++++++++++++++ .github/workflows/test.yml | 3 -- docs/index.html | 1 + 5 files changed, 34 insertions(+), 88 deletions(-) delete mode 100644 .github/workflows/FetchChanges.yml delete mode 100644 .github/workflows/deploy-cimet.yml create mode 100644 .github/workflows/pages.yml create mode 100644 docs/index.html diff --git a/.github/workflows/FetchChanges.yml b/.github/workflows/FetchChanges.yml deleted file mode 100644 index 20195292..00000000 --- a/.github/workflows/FetchChanges.yml +++ /dev/null @@ -1,28 +0,0 @@ -#name: Fetch Changes -# -#on: push -# -#jobs: -# identify-changed-files: -# runs-on: ubuntu-latest -# -# steps: -# - name: Checkout code -# uses: actions/checkout@v3 -# with: -# fetch-depth: 2 -# -# - name: Get line-by-line diff -# id: get_diff -# uses: ILikePlayingGames/line-diff-action@v1.3 -# with: -# commit-hash: '@~' -# -# - name: Save diff.txt as artifact -# uses: actions/upload-artifact@v2 -# with: -# name: changed-files-diff -# path: ./diff.txt -# -# - name: Display diff content -# run: cat ./diff.txt diff --git a/.github/workflows/deploy-cimet.yml b/.github/workflows/deploy-cimet.yml deleted file mode 100644 index ce245c77..00000000 --- a/.github/workflows/deploy-cimet.yml +++ /dev/null @@ -1,57 +0,0 @@ -#name: CIMET (Change Impact Microservice Evolution Tool) -# -#on: -# pull_request: -# types: -# - opened -# branches: -# - 'master' # <-- Change Base Pull Request Branch Here -# -#jobs: -# build-and-extract: -# runs-on: ubuntu-latest -# -# steps: -# - uses: actions/checkout@v3 -# - name: Set up JDK 17 -# uses: actions/setup-java@v3 -# with: -# java-version: '17' -# distribution: 'temurin' -# cache: maven -# -# - name: Extract Source Branch Name -# shell: bash -# run: echo "SOURCE_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV" -# id: extract_source_branch -# -# - name: Extract Base Branch Name -# shell: bash -# run: echo "BASE_BRANCH=${GITHUB_BASE_REF}" >> "$GITHUB_ENV" -# id: extract_base_branch -# -# - name: Install Maven -# run: sudo apt-get install -y maven -# -# - name: Clone cimet Repository -# run: git clone https://github.com/cloudhubs/cimet tool -# working-directory: ./ # Clone into the root directory -# -# - name: Build Cimet with Maven -# run: mvn clean install -DskipTests -# working-directory: ./tool -# -# - name: Get Cimet Config -# env: -# CIMET_CONFIG: ${{ vars.CIMET_CONFIG }} -# run: echo "$CIMET_CONFIG" >> "./tool/cimet-config.json" -# -# - name: Run Cimet -# run: mvn exec:java -Dexec.mainClass="edu.university.ecs.lab.CimetRunner" -Dexec.args="cimet-config.json $BASE_BRANCH ${{ github.event.pull_request.base.sha }} $SOURCE_BRANCH ${{ github.event.pull_request.head.sha }}" -# working-directory: ./tool -# -# - name: Save out folder -# uses: actions/upload-artifact@v2 -# with: -# name: changed-files-diff -# path: ./tool/out diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..ccfe008f --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,33 @@ +name: Deploy Javadoc with Custom Index + +on: + push: + branches: + - dev + +jobs: + javadoc: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '17' + + - name: Generate Javadoc + run: mvn javadoc:javadoc + + # Copy the custom index.html to the Javadoc output directory + - name: Replace Javadoc index.html with custom file + run: cp docs/index.html target/site/apidocs/index.html + + # Deploy Javadoc to GitHub Pages + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: target/site/apidocs diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0fd7f55..d37c6efe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,6 @@ name: Maven Tests on: - push: - branches: - - main pull_request: branches: - main diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..ecf0af74 --- /dev/null +++ b/docs/index.html @@ -0,0 +1 @@ +

Hello World! Cimet2

\ No newline at end of file