From 6c5cf62bc6e77cf4fc2a79f6ad40ec0d849c5e8c Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Fri, 30 Jan 2026 07:13:46 +0000 Subject: [PATCH] Add Gitea Actions workflow: release.yml --- .gitea/workflows/release.yml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..0a6c9b5 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,51 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Run tests + run: npm test + + - name: Create Release + uses: https://gitea.com/actions/release-action@main + with: + files: | + dist/** + package.json + README.md + LICENSE + title: Release ${{ gitea.ref }} + body: | + ## Changes + + See [CHANGELOG](./CHANGELOG.md) for details. + + ## Installation + + ```bash + npm install -g cli-spec-generator + ``` + + Or download the binary from the assets below. + draft: false + prerelease: false