Skip to content

Commit ec499e4

Browse files
committed
Use the Nix in the Github workflow
1 parent 03b97fd commit ec499e4

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/maven.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,15 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- name: Install Graphviz
19-
run: sudo apt-get install -y graphviz
18+
- uses: cachix/install-nix-action@v18
2019
- uses: actions/checkout@v3
21-
- name: Set up JDK 17
22-
uses: actions/setup-java@v3
23-
with:
24-
java-version: '17'
25-
distribution: 'temurin'
26-
cache: maven
27-
- name: Build with Maven
28-
run: mvn -B --file pom.xml package javadoc:javadoc
20+
- name: Build
21+
run: nix-build
2922
- name: Upload Javadoc artifact
3023
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
3124
uses: actions/upload-pages-artifact@v1
3225
with:
33-
path: docs/javadoc
26+
path: result/share/doc/DiffDetective
3427

3528
# An additional job is recommened in the documentation of `actions/deploy-pages`
3629
deploy-javadoc:

0 commit comments

Comments
 (0)