ci: test with release action
This commit is contained in:
@@ -16,5 +16,31 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Prepare git
|
||||||
|
run: |
|
||||||
|
git config --global user.email "gitea@bjornp.com"
|
||||||
|
git config --global user.name "gitea-actions"
|
||||||
|
|
||||||
- name: Determine release version and changelog
|
- 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: Get latest tag
|
||||||
|
id: tag
|
||||||
|
run: git describe --tags --abbrev=0
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: prometheus-exporter_*.zip
|
||||||
|
body_path: CHANGELOG.md
|
||||||
|
tag_name: ${{join(steps.tag.outputs.*, '')}}
|
||||||
|
md5sum: true
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"branches": [
|
|
||||||
"main",
|
|
||||||
"beta"
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"@semantic-release/commit-analyzer",
|
|
||||||
"@semantic-release/release-notes-generator"
|
|
||||||
],
|
|
||||||
"publish": false
|
|
||||||
}
|
|
||||||
8
.versionrc.json
Normal file
8
.versionrc.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"bumpFiles": [
|
||||||
|
{
|
||||||
|
"filename": "src/info.json",
|
||||||
|
"type": "json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
16
CHANGELOG.md
16
CHANGELOG.md
@@ -1,16 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
||||||
|
|
||||||
## 1.0.0 (2025-09-20)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* expose production/consumption metrics as metrics.prom ([8a91112](https://git.bjornp.com/bjorn/factorio-prometheus-exporter/commit/8a911129f68eef90db974abcb8be9b059e5567c3))
|
|
||||||
* **prometheus-exporter:** add metrics-pole for power metrics ([25026b2](https://git.bjornp.com/bjorn/factorio-prometheus-exporter/commit/25026b2e732cb8a1074e8d8f73edf576565f3b9e))
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **prometheus-exporter:** fix metric naming to be consistent with prometheus reqs ([431b73e](https://git.bjornp.com/bjorn/factorio-prometheus-exporter/commit/431b73ee2dd7b3d78076a4eda6af813072f18678))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user