Skip to content

Commit 368a938

Browse files
authored
Merge pull request #73 from target/gha-release-published
Use GHA release.published action instead of push.tags
2 parents 121d617 + d4f6856 commit 368a938

1 file changed

Lines changed: 26 additions & 6 deletions

File tree

.github/workflows/release.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
11
name: Release
22

33
on:
4-
push:
5-
tags: "[1-9]+.[0-9]+.[0-9]+"
6-
branches: master
4+
release:
5+
types: [published]
6+
#push:
7+
# tags: "[1-9]+.[0-9]+.[0-9]+"
78

89
env:
910
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1011

1112
jobs:
12-
build:
13-
uses: target/data-validator/.github/workflows/ci.yaml@main
1413
deploy:
1514
name: Release
1615
runs-on: ubuntu-latest
1716
steps:
17+
- name: Checkout current branch (full)
18+
uses: actions/checkout@v2
19+
20+
- name: Setup Java and Scala
21+
uses: olafurpg/setup-scala@v10
22+
with:
23+
java-version: adopt@1.8
24+
25+
- name: Cache sbt
26+
uses: actions/cache@v2
27+
with:
28+
path: |
29+
~/.sbt
30+
~/.ivy2/cache
31+
~/.coursier/cache/v1
32+
~/.cache/coursier/v1
33+
~/AppData/Local/Coursier/Cache/v1
34+
~/Library/Caches/Coursier/v1
35+
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
36+
1837
# uses sbt-github-packages, see build.sbt
19-
- run: bin/sbt publish
38+
- name: Publish with SBT
39+
run: bin/sbt publish

0 commit comments

Comments
 (0)