Skip to content

Commit 5250147

Browse files
authored
Merge pull request #54 from phillip-kruger/master
Auto release and publish of the pdf
2 parents a3e753c + 3fc27df commit 5250147

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.github/workflows/build.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## This allows Github actions to build this project and publish the PDF to github.
2+
name: Build and Tag
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
21+
- name: Build with Maven
22+
run: mvn -B package --file pom.xml
23+
24+
- name: Bump version and push tag
25+
id: bump
26+
uses: anothrNick/github-tag-action@master
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
WITH_V: true
30+
DEFAULT_BUMP: patch
31+
32+
- name: Upload binaries to release
33+
uses: svenstaro/upload-release-action@v1-release
34+
with:
35+
repo_token: ${{ secrets.GITHUB_TOKEN }}
36+
file: ebook/target/generated-docs/building-an-api-backend-with-microprofile.pdf
37+
asset_name: building-an-api-backend-with-microprofile.pdf
38+
tag: ${{ steps.bump.outputs.new_tag }}
39+
overwrite: true

ebook/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<description>Ebook - Building an API Backend with MicroProfile</description>
3131

3232
<properties>
33-
<asciidoctor-maven.version>1.5.7.1</asciidoctor-maven.version>
34-
<asciidoctorj-pdf.version>1.5.0-alpha.16</asciidoctorj-pdf.version>
33+
<asciidoctor-maven.version>1.6.0</asciidoctor-maven.version>
34+
<asciidoctorj-pdf.version>1.5.0-beta.8</asciidoctorj-pdf.version>
3535
<license>Apache License v 2.0</license>
3636
<maven.build.timestamp.format>MMMM dd, yyyy</maven.build.timestamp.format>
3737
<revisiondate>${maven.build.timestamp}</revisiondate>

0 commit comments

Comments
 (0)