Skip to content

Commit 1bba865

Browse files
author
juanonsoftware
committed
Add CI Master + update script
1 parent 05d50e1 commit 1bba865

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.github/workflows/ci-develop.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI on Develop branch
1+
name: CI on Develop
22
on:
33
push:
44
branches: [ develop ]
@@ -9,11 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- name: Create new tag
12+
- name: Create and Push new tag
1313
shell: pwsh
1414
run: |
1515
. ./Scripts/VersionManager.ps1
16-
New-Tag -Branch "develop"
17-
- name: Push tags
18-
run: |
19-
git push --tags
16+
New-Tag -Branch "develop"

.github/workflows/ci-master.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI on Master
2+
on:
3+
push:
4+
branches: [ master ]
5+
workflow_dispatch:
6+
7+
jobs:
8+
create-new-tag:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Create and Push new tag
13+
shell: pwsh
14+
run: |
15+
. ./Scripts/VersionManager.ps1
16+
New-Tag -Branch "master"

Scripts/VersionManager.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function New-Tag
3131
$tag = "v$version.$prefix$patch"
3232

3333
Invoke-Expression "git tag $tag"
34+
Invoke-Expression "git push origin $tag"
3435

3536
return $tag
3637
}

0 commit comments

Comments
 (0)