Cealing-Host/.github/workflows/generate-toml-and-release.yaml
2025-05-03 16:49:29 +08:00

30 lines
683 B
YAML

name: Generate toml config and release
on:
push:
tags:
- "*.*.*.*"
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: generate toml file
run: python ./.github/workflows/generate.py
- uses: actions/upload-artifact@v4
with:
name: config
path: |
./*.json
./*.toml
release:
runs-on: ubuntu-latest
needs: generate
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: config/
- uses: ncipollo/release-action@v1
with:
artifacts: "config/*.json,config/*.toml"