Skip to content

Commit 1c6d6b6

Browse files
authored
Merge pull request #13 from anduril/pely/bot-bump-branch
Pely/bot bump branch
2 parents d5af083 + c9cb817 commit 1c6d6b6

File tree

3 files changed

+48
-30
lines changed

3 files changed

+48
-30
lines changed

.github/workflows/gradle-release.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Gradle release
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
types:
7+
- closed
8+
workflow_dispatch: {}
9+
10+
concurrency:
11+
group: ${{ github.workflow }}
12+
cancel-in-progress: true
13+
jobs:
14+
release:
15+
if: github.event.pull_request.merged == true
16+
runs-on: ubuntu-latest
17+
permissions:
18+
packages: write
19+
contents: read
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.ref_name }}
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: '17'
28+
distribution: 'temurin'
29+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
30+
settings-path: ${{ github.workspace }} # location for the settings.xml file
31+
- name: Setup Gradle
32+
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
33+
- name: Build with Gradle
34+
run: ./gradlew build
35+
- name: Publish to GitHub Packages
36+
run: ./gradlew publish
37+
env:
38+
USERNAME: ${{ github.actor }}
39+
TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/version-bump.yml

+8-29
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
name: Gradle release
1+
name: Bump version
22
on:
3-
push:
4-
branches: [master]
3+
pull_request:
4+
types: [opened]
5+
branches:
6+
- 'master'
57
workflow_dispatch: {}
68

79
concurrency:
@@ -14,35 +16,12 @@ jobs:
1416
contents: write
1517
steps:
1618
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
ref: ${{ github.event.pull_request.head.ref }}
1722
- name: Bump Version
1823
id: bump
1924
uses: Plugily-Projects/version-bump-action@v9
2025
with:
2126
github-token: ${{ secrets.GITHUB_TOKEN }}
2227
auto-version-bump: true
23-
release:
24-
needs: bump-version
25-
runs-on: ubuntu-latest
26-
permissions:
27-
packages: write
28-
contents: read
29-
steps:
30-
- uses: actions/checkout@v4
31-
with:
32-
ref: ${{ github.ref_name }}
33-
- name: Set up JDK 17
34-
uses: actions/setup-java@v4
35-
with:
36-
java-version: '17'
37-
distribution: 'temurin'
38-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
39-
settings-path: ${{ github.workspace }} # location for the settings.xml file
40-
- name: Setup Gradle
41-
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
42-
- name: Build with Gradle
43-
run: ./gradlew build
44-
- name: Publish to GitHub Packages
45-
run: ./gradlew publish
46-
env:
47-
USERNAME: ${{ github.actor }}
48-
TOKEN: ${{ secrets.GITHUB_TOKEN }}

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = 'com.anduril'
8-
version = '1.0.0-SNAPSHOT24'
8+
version = '1.0.0-SNAPSHOT25'
99

1010
compileJava {
1111
sourceCompatibility = '1.8'

0 commit comments

Comments
 (0)