-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1005 Bytes
/
main_ci.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
name: Main CI (Release)
on:
push:
branches:
- main
jobs:
build:
permissions:
contents: read
packages: write
uses: ./.github/workflows/build.yml
deploy:
needs: build
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'corretto'
cache: maven
- name: Set Git user for release
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Grant execute permission for Maven Wrapper
run: chmod +x ./mvnw
- name: Bump Version and Release (Maven Release Plugin)
run: |
echo "Releasing and bumping version..."
./mvnw release:prepare release:perform -Darguments=-DskipTests -B