-
-
Notifications
You must be signed in to change notification settings - Fork 43
62 lines (58 loc) · 1.75 KB
/
publish_snapshot.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
name: Publish Snapshot
env:
GRAALCE_JDK_VERSION: "17.0.9"
on:
push:
branches:
- master
jobs:
changes:
runs-on: ubuntu-latest
outputs:
core: ${{ steps.filter.outputs.core }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
core:
- '.github/workflows/**'
- 'core/**'
- '*gradle*'
- 'set-version.sh'
build:
needs: changes
if: ${{ needs.changes.outputs.core == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up GraalCE JDK
uses: actions/setup-java@v4
with:
distribution: 'jdkfile'
jdkFile: ${{ runner.temp }}/java_package.tar.gz
java-version: ${{ steps.fetch_latest_jdk.outputs.jdk_version }}
architecture: x64
- name: Set up JDK 8 and 17 # we need both because graal plugin in cli-bot requires jdk version >= 11
uses: actions/setup-java@v4
with:
java-version: |
17
8
distribution: 'temurin'
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
- name: Grant execute permission to scripts
run: |
chmod +x gradlew
chmod +x set-version.sh
- name: Set version
id: semver
run: ./set-version.sh -t minor
- name: Publish snapshot for next minor release
run: VERSION=${{ steps.semver.outputs.SEMVER }} make snapshot-minor
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPEUSERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPEPASSWORD }}