Skip to content

Commit b10dc57

Browse files
committed
update CI
1 parent ee1769b commit b10dc57

File tree

2 files changed

+16
-26
lines changed

2 files changed

+16
-26
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ name: CI
22

33
on:
44
pull_request:
5+
branches:
6+
- master
7+
- main
58
push:
69
branches:
710
- master
811
- main
12+
tags:
13+
- "v*.*.*"
914

1015
jobs:
1116
build:
@@ -16,3 +21,14 @@ jobs:
1621
- run: pnpm i
1722
- run: pnpm check
1823
- run: pnpm build
24+
25+
- name: Release
26+
uses: softprops/action-gh-release@v2
27+
if: startsWith(github.ref, 'refs/tags/v')
28+
with:
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
body: |
31+
Auto-generated release
32+
prerelease: ${{ contains(github.event.ref, '-beta') }}
33+
fail_on_unmatched_files: true
34+
files: ./dist-xdc/*.xdc

.github/workflows/release.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)