-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (55 loc) · 1.92 KB
/
main.linux.temurin.lts.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# Automatically generated: DO NOT EDIT.
#
# Generation code: https://www.github.com/io7m-com/.github/
# Workflow profile: Core
#
name: main.linux.temurin.lts
on:
push:
branches: [ master, main, develop, feature/*, release/* ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: JDK
uses: actions/setup-java@v4
with:
java-version: 23
distribution: 'temurin'
- name: Collect project version
id: project_version
run: java .github/workflows/Tools.java ShowProjectVersion pom.xml >> "$GITHUB_OUTPUT"
- name: Collect project snapshot
id: project_is_snapshot
run: java .github/workflows/Tools.java ShowProjectIsSnapshot pom.xml >> "$GITHUB_OUTPUT"
- name: Build
env:
XOANON_REALLY_USE_LOCAL_DISPLAY: true
run: mvn --batch-mode --strict-checksums --errors clean verify site
- name: Upload test logs
uses: actions/upload-artifact@v4
if: always()
with:
name: test-logs
path: ./com.io7m.zeptoblog.tests/target/surefire-reports
- name: Coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: com.io7m.zeptoblog.tests/target/site/jacoco-aggregate/jacoco.xml
- name: Log in to Quay.io.
uses: redhat-actions/[email protected]
with:
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
registry: 'quay.io'
- name: Deploy snapshot
if: ${{ steps.project_is_snapshot.outputs.IO7M_PROJECT_VERSION_IS_SNAPSHOT == 'true' }}
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
run: .github/workflows/deploy-snapshot.sh