Skip to content

Commit 913c3d2

Browse files
committed
Enable cache in release action, and enable the action only on push tag
1 parent 4907de1 commit 913c3d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ name: Release
22
on:
33
push:
44
branches: [master, main]
5-
tags: ["*"]
5+
tags: ["v*"]
66
jobs:
77
publish:
8+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
89
runs-on: ubuntu-20.04
910
steps:
1011
- uses: actions/checkout@v2.3.4
1112
with:
1213
fetch-depth: 0
1314
- uses: olafurpg/setup-scala@v10
15+
- uses: coursier/cache-action@v5
1416
- run: sbt ci-release
1517
env:
1618
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}

0 commit comments

Comments
 (0)