Skip to content

Commit

Permalink
Enable cache in release action, and enable the action only on push tag
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrf committed Jan 29, 2021
1 parent 4907de1 commit 913c3d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ name: Release
on:
push:
branches: [master, main]
tags: ["*"]
tags: ["v*"]
jobs:
publish:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v10
- uses: coursier/cache-action@v5
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Expand Down

0 comments on commit 913c3d2

Please sign in to comment.