Skip to content

Commit 12d98f5

Browse files
author
Ivica Matic
committed
feat: added workflow for pushing into mai
n
1 parent 9ba565a commit 12d98f5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/build-dist-version-on-push-to-main.yaml renamed to .github/workflows/build-dist-version-on-release.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
name: Build distribution version and save to artifact on push to main
2-
1+
name: Build distribution version on release
32
on:
4-
push:
5-
branches:
6-
- main
3+
release:
4+
types: [created]
75

86
jobs:
9-
build:
7+
build-distribution-version-into-artifact:
108
runs-on: ubuntu-latest
119
steps:
1210
- uses: actions/checkout@v4
@@ -22,5 +20,5 @@ jobs:
2220
- uses: actions/upload-artifact@v4
2321
name: Upload artifact
2422
with:
25-
name: dist
23+
name: dist-${{ github.event.repository.name }}:${{ github.event.release.tag_name }}
2624
path: build

0 commit comments

Comments
 (0)