Skip to content

Commit

Permalink
Update publishing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Dec 22, 2020
1 parent e04a997 commit de7a564
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/bintray.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Publish artifact to Bintray
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
run: ./gradlew -Pversion=${{ github.event.release.tag_name }} clean build bintrayUpload
run: ./gradlew -Pversion=${{ github.event.release.tag_name }} clean build -x test bintrayUpload
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Publish artifact to GitHub Packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew -Pversion=${{ github.event.release.tag_name }} clean build publish
run: ./gradlew -Pversion=${{ github.event.release.tag_name }} clean build -x test publish

0 comments on commit de7a564

Please sign in to comment.