-
-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (37 loc) · 1.17 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 23 for x64
uses: actions/setup-java@v4
with:
distribution: 'graalvm'
java-version: 23
architecture: x64
- name: Build with Maven
working-directory: booksamples
run: mvn --batch-mode --update-snapshots clean package
- name: Generate PDF with Pandoc
run: |
docker run --rm \
-v ${{ github.workspace }}/bookcontents:/data \
pandoc/extra:latest \
$FILES -d ./pandoc/settings.yaml
env:
FILES: ${{ env.FILES }}
- name: Commit and push generated PDF
working-directory: bookcontents
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add vulkanbook.epub
git commit -m "Add generated EPUIB: vulkanbook.epub" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}