data/.gitea/workflows/release.yaml

33 lines
959 B
YAML
Raw Permalink Normal View History

2024-02-22 16:21:30 +00:00
name: Generate Release
2024-02-22 13:41:25 +00:00
2024-02-22 16:21:30 +00:00
run-name: Release_Generator
on:
push:
branches:
2024-03-08 13:42:33 +00:00
- main
jobs:
2024-02-22 13:31:05 +00:00
validate_and_release:
runs-on: ubuntu-latest
steps:
2024-02-22 13:07:53 +00:00
- name: Check out Repo code
uses: actions/checkout@v3
2024-02-22 13:46:42 +00:00
2024-02-22 13:51:50 +00:00
- name: Validate YAML
2024-02-22 14:02:16 +00:00
uses: https://github.com/GrantBirki/json-yaml-validate@v2.6.1
2024-02-22 14:19:33 +00:00
2024-02-22 14:05:24 +00:00
- name: Get current timestamp
id: timestamp
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')"
2024-02-22 14:02:16 +00:00
- name: Create Release
if: success()
2024-02-22 14:19:33 +00:00
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch'
2024-02-22 14:05:24 +00:00
with:
2024-02-22 16:44:17 +00:00
body: Automatic release after changes
2024-02-22 14:19:33 +00:00
tag_name: ${{ steps.timestamp.outputs.date }}
2024-02-22 14:22:54 +00:00
name: ${{ steps.timestamp.outputs.date }}
2024-02-22 14:25:23 +00:00
token: ${{ secrets.OWLBOT_KEY }}