Add release workflow
Some checks failed
Generate Release / validate_and_release (push) Failing after 8s

This commit is contained in:
Fred Boniface
2025-12-04 21:46:32 +00:00
parent cae38723a3
commit aa266fe4df
2 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
name: Generate Release
run-name: Release_Generator
on:
push:
branches:
- main
jobs:
validate_and_release:
runs-on: ubuntu-latest
steps:
- name: Check out Repo code
uses: actions/checkout@v3
- name: Validate XML
run: |
sudo apt-get update && sudo apt-get install -y libxml2-utils
xmllint --noout --valid knowledgebase.xml
- name: Get current timestamp
id: timestamp
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')"
- name: Create Release
if: success()
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch'
with:
body: Automatic release after changes
tag_name: ${{ steps.timestamp.outputs.date }}
name: ${{ steps.timestamp.outputs.date }}
token: ${{ secrets.OWLBOT_KEY }}

View File

@@ -12,4 +12,8 @@ LDBSVWS (or the public version) to reduce API requests
that will return no data
Only a subset of the information included in the knowledgebase
is included for these locations
is included for these locations
## Releases
Upon a push to main, the XML will be validated, and if all is good, a release produced.