Skip to content

Commit

Permalink
tweak build
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimpza committed Dec 31, 2019
1 parent 91c7cb0 commit b4396e9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ jobs:
java-version: 11
- name: Build Java
run: ./gradlew execJar
- name: Publish
env:
GH_USER: ${{ secrets.GH_USER }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: ./gradlew publish
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build Java
env:
GH_USER: ${{ secrets.GH_USER }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: ./gradlew execJar publish

0 comments on commit b4396e9

Please sign in to comment.