-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.03 KB
/
build-publish.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
name: build and publish
on:
push:
paths-ignore:
- "**.md"
- ".gitignore"
- "LICENCE"
- "CODEOWNERS"
branches:
- main
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17.x'
- name: test and build
run: ./build.sh
- name: prepare release
run: ./prepare-release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: publish
run: ./gradlew -Pversion="$VERSION_TAG" publish
env:
ORG_GRADLE_PROJECT_githubUser: x-access-token
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }}
- name: create release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ env.VERSION_TAG }}
name: ${{ env.VERSION_TAG }}
body: ${{ env.CHANGE_LOG }}
draft: false
prerelease: false