Add release workflow
Some checks failed
Generate Release / validate_and_release (push) Failing after 8s
Some checks failed
Generate Release / validate_and_release (push) Failing after 8s
This commit is contained in:
34
.gitea/workflows/release.yaml
Normal file
34
.gitea/workflows/release.yaml
Normal 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 }}
|
||||||
@@ -13,3 +13,7 @@ that will return no data
|
|||||||
|
|
||||||
Only a subset of the information included in the knowledgebase
|
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.
|
||||||
Reference in New Issue
Block a user