-
-
Notifications
You must be signed in to change notification settings - Fork 24
61 lines (52 loc) · 1.31 KB
/
build.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
name: Build
on:
push:
branches:
- '*'
tags:
- 'v*'
- 'website*'
pull_request:
branches:
- 'main'
schedule:
- cron: '41 19 * * 2'
permissions:
contents: read
jobs:
build:
permissions:
security-events: write # for github/codeql-action
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Maven version
run: |
mkdir -p ./.mvn
echo '-e -B -ntp -DtrimStackTrace=false' > ./.mvn/maven.config
mvn --version
mkdir -p target
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java
- name: Maven build
run: |
mvn install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Website
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/website') || startsWith(github.ref, 'refs/tags/v'))
run: |
git config --global user.name "Stephen Colebourne (CI)"
git config --global user.email "scolebourne@joda.org"
git checkout main
git tag website2x
git push origin website2x