-
Notifications
You must be signed in to change notification settings - Fork 174
45 lines (44 loc) · 1.38 KB
/
zips.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: Generate zips
on:
push:
branches:
- main
paths-ignore:
- 'quarkus-workshop-super-heroes/docs/**'
- 'quarkus-workshop-super-heroes/dist/**'
jobs:
build_java17:
runs-on: ubuntu-latest
concurrency: zip-generation
steps:
- uses: actions/checkout@v3
- name: Install JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Microservices build with Maven
run: mvn -B install --file quarkus-workshop-super-heroes/pom.xml
- name: Native build with Maven
run: mvn -B install --file quarkus-workshop-super-heroes/pom.xml -Pnative -Dquarkus.native.container-build=true -DskipITs -pl '!:rest-narration,!:extension-version'
publication:
needs: [ build_java17 ]
runs-on: ubuntu-latest
concurrency: zip-generation
steps:
- uses: actions/checkout@v3
- name: Install JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Generate zips
run: |
cd quarkus-workshop-super-heroes/
mvn package -N
- name: Commit zips
run: |
git config --global user.name 'Github Actions'
git config --global user.email '[email protected]'
git commit -am "Automated zip generation"
git push