Compare commits
5 Commits
v0.1.5
...
2be4331a6e
Author | SHA1 | Date | |
---|---|---|---|
2be4331a6e | |||
98754be109 | |||
9ee2750534 | |||
9920c94a8b | |||
b7bc477d2e |
@@ -2,12 +2,13 @@ name: Gitea CI/CD
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ "development", "main", "staging"]
|
||||
#push:
|
||||
#branches: [ "development", "main", "staging"]
|
||||
#tags: [ "v*.*.*" ]
|
||||
pull_request:
|
||||
branches: [ "development", "main", "staging" ]
|
||||
tags: [ "v*.*.*" ]
|
||||
#pull_request:
|
||||
#branches: [ "development", "main", "staging" ]
|
||||
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
@@ -76,7 +77,7 @@ jobs:
|
||||
elif [[ "${GITHUB_REF}" == "refs/heads/development" ]]; then
|
||||
minor=$((minor + 1))
|
||||
patch=0
|
||||
elif [[ "${GITHUB_REF}" == "refs/heads/staging" ]]; then
|
||||
else
|
||||
patch=$((patch + 1))
|
||||
fi
|
||||
|
||||
@@ -137,7 +138,7 @@ jobs:
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "actions@github.com"
|
||||
git tag ${{ needs.set-tag.outputs.tag_name }}
|
||||
git push origin ${{ needs.set-tag.outputs.tag_name }}
|
||||
git push -u origin ${{ needs.set-tag.outputs.tag_name }}
|
||||
echo "Tag created and pushed successfully"
|
||||
|
||||
- name: Skip tag creation
|
||||
|
Reference in New Issue
Block a user