Files
test-actions/.gitea/workflows/release_fedora-image.yml
Lukas Greve 3ebfef8dc5
Some checks failed
checkout_fedora-image / checkout (push) Successful in 19s
checkout_ubuntu-image / checkout (push) Successful in 23s
make-a-release / release (push) Failing after 24s
reworked the release part to add a tag
2025-11-17 10:57:47 +01:00

44 lines
1.2 KiB
YAML

name: make-a-release
on:
push:
branches: [ main ]
jobs:
release:
runs-on: fedora-cloud-42
defaults:
run:
shell: bash
container:
image: git.phyllo.me/devops/fedora-runner-image:latest
steps:
- name: Checkout
uses: https://git.phyllo.me/devops/checkout@v5
with:
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
with:
files: |-
release-notes.txt
api_key: '${{secrets.RELEASE_TOKEN}}'