new tag
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
name: make-a-release
|
name: make-a-release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -19,24 +20,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Create release notes file
|
|
||||||
run: |
|
|
||||||
echo "Release notes for version 1.0.0" > release-notes.txt
|
|
||||||
echo "=========================" >> release-notes.txt
|
|
||||||
echo "" >> release-notes.txt
|
|
||||||
echo "Changes in this release:" >> release-notes.txt
|
|
||||||
echo "- add a new release workflow " >> release-notes.txt
|
|
||||||
|
|
||||||
- name: Create and push tag
|
|
||||||
run: |
|
|
||||||
# Get the current commit hash
|
|
||||||
COMMIT_HASH=$(git rev-parse HEAD)
|
|
||||||
# Create a simple tag (you can customize this versioning)
|
|
||||||
TAG_VERSION="v1.0.0"
|
|
||||||
git tag -a $TAG_VERSION -m "Release $TAG_VERSION"
|
|
||||||
git push origin $TAG_VERSION
|
|
||||||
|
|
||||||
|
|
||||||
- uses: https://git.phyllo.me/devops/action-gh-release@v2
|
- uses: https://git.phyllo.me/devops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
|
|||||||
Reference in New Issue
Block a user