Skip to content

Commit

Permalink
Merge pull request #51 from orchitech/fix-gh-actions
Browse files Browse the repository at this point in the history
Fix GH Action config.
  • Loading branch information
pavelhoral authored Feb 21, 2024
2 parents 7cb23e0 + 3449128 commit bfa90e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ jobs:
java: [11, 17]
name: "Java ${{ matrix.java }} build"
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Check
run: mvn -B verify
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "${{ matrix.java }}"
cache: "maven"
- name: Check
run: mvn -B verify
13 changes: 5 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: deploy
name: Deploy Pages

on:
push:
Expand All @@ -24,15 +24,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
- uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
distribution: "temurin"
java-version: "17"
cache: "maven"
- run: mvn -Pmetrics site site:deploy
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: './target/deploy/'
path: "./target/deploy/"
- uses: actions/deploy-pages@v4

0 comments on commit bfa90e2

Please sign in to comment.