Skip to content

Commit 020bdd5

Browse files
release only on newly pushed tag (#303)
1 parent 855ae96 commit 020bdd5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a Java project with Maven
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33

4-
name: CI
4+
name: All Tests
55

66
on:
77
push:

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
name: release
1+
name: Release
22
concurrency: release
33
on:
44
push:
5-
branches: [master, main]
65
tags: ["*"]
76
jobs:
87
release:
@@ -22,7 +21,7 @@ jobs:
2221
- run: echo $PGP_SECRET | base64 --decode | gpg --batch --import
2322
env:
2423
PGP_SECRET: ${{ secrets.PGP_SECRET }}
25-
- run: sbt test ciReleaseTagNextVersion ciReleaseSonatype
24+
- run: sbt test ciReleaseSkipIfAlreadyReleased ciReleaseTagNextVersion ciReleaseSonatype
2625
env:
2726
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
2827
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

0 commit comments

Comments
 (0)