fix yaml format

This commit is contained in:
Sving1024 2025-05-03 16:45:42 +08:00
parent 894aa96fef
commit 1c3f9ac137
No known key found for this signature in database
GPG Key ID: 2BCE145890082742

View File

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