Compare commits
5 Commits
v0.1.4
...
37468b6785
Author | SHA1 | Date | |
---|---|---|---|
37468b6785 | |||
471767c4ed | |||
596baba5ef | |||
12390031f9 | |||
daed8c1462 |
@@ -5,8 +5,12 @@ on:
|
||||
push:
|
||||
branches: [ "development", "main", "staging"]
|
||||
tags: [ "v*.*.*" ]
|
||||
pull_request:
|
||||
branches: [ "development", "main", "staging" ]
|
||||
#pull_request:
|
||||
#branches: [ "development", "main", "staging" ]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
env:
|
||||
DOTNET_VERSION: '8.0.x'
|
||||
@@ -46,6 +50,8 @@ jobs:
|
||||
tag_name: ${{ steps.set_tag.outputs.tag_name }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Determine next semantic version tag
|
||||
id: set_tag
|
||||
@@ -75,6 +81,7 @@ jobs:
|
||||
fi
|
||||
|
||||
new_tag="v${major}.${minor}.${patch}"
|
||||
echo "Creating new version tag: ${new_tag}"
|
||||
echo "tag_name=${new_tag}" >> $GITHUB_OUTPUT
|
||||
|
||||
docker-build-and-push:
|
||||
@@ -109,6 +116,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up Git user
|
||||
run: |
|
||||
@@ -116,8 +124,6 @@ jobs:
|
||||
git config user.email "actions@github.com"
|
||||
|
||||
- name: Create and push tag
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git tag ${{ needs.set-tag.outputs.tag_name }}
|
||||
git push origin ${{ needs.set-tag.outputs.tag_name }}
|
Reference in New Issue
Block a user