ci: test with release action

This commit is contained in:
2025-09-20 10:26:10 +02:00
parent dcbd133e7f
commit f0083bc06f
4 changed files with 26 additions and 28 deletions

View File

@@ -17,4 +17,21 @@ jobs:
uses: actions/checkout@v4
- name: Determine release version and changelog
run: npx semantic-release
run: npx commit-and-tag-version
- name: Build release
working-directory: src
run: |
VERSION=$(jq '.version' info.json | xargs echo -n)
zip -r ../prometheus-exporter_$VERSION.zip .
- name: Push changelog and tag
run: git push --follow-tags
- name: Create release
uses: akkuman/gitea-release-action@v1
with:
files: prometheus-exporter_*.zip
body_path: CHANGELOG.md
tag_name: $(git describe --tags --abbrev=0 | xargs echo -n)
md5sum: true