Skip to content

Commit

Permalink
change: setup publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kwieciński committed Sep 27, 2019
1 parent e871823 commit a67e7b2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CI
name: Build project

on: [push]
on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
Expand All @@ -13,5 +19,5 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run a one-line script
- name: Build app with Gradle
run: ./gradlew build
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Java CI
name: Publish project

on:
push:
branches:
- 'release/*' # Push events to branches matching refs/heads/releases/*
branches:
- master

jobs:
build:
Expand All @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
- name: Build app with Gradle
run: ./gradlew build
- name: Publish to Github Package Registry
run: ./gradlew publish -DGH_TOKEN=${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
allprojects {
version = '1.0.0'
version = '0.1.0'
}

0 comments on commit a67e7b2

Please sign in to comment.