Skip to content

Commit 0a9b154

Browse files
committed
chore: update workflows
1 parent 7cb669a commit 0a9b154

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
tags:
4+
- "v*"
5+
6+
name: Create Release
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- name: Create Release
16+
id: create_release
17+
uses: actions/create-release@v1
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
tag_name: ${{ github.ref }}
22+
release_name: ${{ github.ref }}
23+
body: |
24+
# 微信 Markdown 编辑器 ${{ github.ref }} 发布🎈
25+
26+
[![github](https://badgen.net/badge/>>/GitHub/cyan)](https://github.com/doocs/md/releases) [![gitee](https://badgen.net/badge/>>/Gitee/cyan)](https://gitee.com/doocs/md/releases)
27+
28+
> Markdown 文档自动即时渲染为微信图文,让你不再为微信文章排版而发愁!
29+
30+
draft: false
31+
prerelease: false

.github/workflows/sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Sync
22

3-
on: page_build
3+
on:
4+
push:
5+
branches: [main]
46

57
jobs:
68
build:

0 commit comments

Comments
 (0)