Skip to content

Commit

Permalink
add workflow for releasing based on tags
Browse files Browse the repository at this point in the history
Should allow GitHub actions to release to Bintray.
  • Loading branch information
brharrington committed Oct 27, 2020
1 parent 005fa97 commit a896b31
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
- uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2
key: ${{ runner.os }}-${{ hashFiles('**/*.sbt') }}
- name: Build
env:
bintrayUser: ${{ secrets.bintrayUser }}
bintrayKey: ${{ secrets.bintrayKey }}
run: |
git fetch --unshallow --tags
cat /dev/null | project/sbt storeBintrayCredentials
cat /dev/null | project/sbt clean test publish bintrayRelease

0 comments on commit a896b31

Please sign in to comment.