Skip to content

Commit

Permalink
Merge pull request #73 from target/gha-release-published
Browse files Browse the repository at this point in the history
Use GHA release.published action instead of push.tags
  • Loading branch information
colindean committed Jan 12, 2022
2 parents 121d617 + d4f6856 commit 368a938
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,39 @@
name: Release

on:
push:
tags: "[1-9]+.[0-9]+.[0-9]+"
branches: master
release:
types: [published]
#push:
# tags: "[1-9]+.[0-9]+.[0-9]+"

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
uses: target/data-validator/.github/workflows/ci.yaml@main
deploy:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2

- name: Setup Java and Scala
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]

- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier/cache/v1
~/.cache/coursier/v1
~/AppData/Local/Coursier/Cache/v1
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

# uses sbt-github-packages, see build.sbt
- run: bin/sbt publish
- name: Publish with SBT
run: bin/sbt publish

0 comments on commit 368a938

Please sign in to comment.