Skip to content

Commit 81f80f4

Browse files
committed
tag artifacts on release only
don't build when a new tag is created
1 parent eac5d07 commit 81f80f4

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
tags-ignore:
6+
- '**'
7+
pull_request:
48

59
permissions:
610
contents: read
@@ -30,4 +34,6 @@ jobs:
3034
uses: actions/upload-artifact@v4
3135
with:
3236
name: Artifacts
33-
path: build/libs/
37+
path: |
38+
build/libs/*.jar
39+
!build/libs/*-sources.jar

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ jobs:
3636
with:
3737
subject-path: 'build/libs/*.jar, !build/libs/*-sources.jar'
3838

39+
- name: Upload Artifacts
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: Artifacts
43+
path: |
44+
build/libs/*.jar
45+
!build/libs/*-sources.jar
46+
3947
- name: Maven Publish
4048
run: ./gradlew publish
4149

0 commit comments

Comments
 (0)