-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (42 loc) · 1.17 KB
/
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
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches-ignore:
- master
pull_request:
branches-ignore:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Prepare build
run: |
sed -i "s/{{release_branch}}/$GITHUB_REF_NAME/" .releaserc* || exit 1
mv .releaserc1.yml .releaserc.yml
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: "temurin"
java-version: "17"
- name: Version
uses: cycjimmy/[email protected]
with:
semantic_version: "23.0.8"
extra_plugins: |
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
- name: Build
run: |
sed -i "s/mod_version=.*/mod_version=$(cat .version)/" gradle.properties || exit 1
./gradlew build
mv .releaserc2.yml .releaserc.yml
- name: Release
uses: cycjimmy/[email protected]
with:
semantic_version: "23.0.8"
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}