Skip to content

Commit 33094e6

Browse files
authored
Merge pull request #53 from touchlab/kpg/build_on_push
Kpg/build on push
2 parents 7725c83 + e42d18e commit 33094e6

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,17 @@ jobs:
2727
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
2828
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
2929

30+
- name: Read version from gradle.properties
31+
id: read_version
32+
uses: christian-draeger/[email protected]
33+
with:
34+
path: './gradle.properties'
35+
property: 'VERSION_NAME'
36+
37+
- name: Create Release
38+
uses: touchlab/[email protected]
39+
with:
40+
tag: ${{ steps.read_version.outputs.value }}
41+
3042
env:
3143
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"

.github/workflows/onpush.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run Build/Test on Push
2+
on:
3+
pull_request:
4+
branches:
5+
- "**"
6+
push:
7+
branches:
8+
- "**"
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout source code
15+
uses: actions/checkout@v2
16+
17+
- uses: actions/setup-java@v2
18+
with:
19+
distribution: "adopt"
20+
java-version: "11"
21+
22+
- name: Validate Gradle Wrapper
23+
uses: gradle/wrapper-validation-action@v1
24+
25+
- name: Build Main
26+
run: ./gradlew build --no-daemon --stacktrace

0 commit comments

Comments
 (0)