chore: update workflows

This commit is contained in:
yanglbme 2021-02-28 19:37:51 +08:00
parent 7cb669a8dd
commit 0a9b154f53
2 changed files with 34 additions and 1 deletions

31
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,31 @@
on:
push:
tags:
- "v*"
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
# 微信 Markdown 编辑器 ${{ github.ref }} 发布🎈
[![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)
> Markdown 文档自动即时渲染为微信图文,让你不再为微信文章排版而发愁!
draft: false
prerelease: false

View File

@ -1,6 +1,8 @@
name: Sync
on: page_build
on:
push:
branches: [main]
jobs:
build: