From 0a9b154f53f930290494121ff6cdcdd7730e1148 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Sun, 28 Feb 2021 19:37:51 +0800 Subject: [PATCH] chore: update workflows --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/sync.yml | 4 +++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..db58ffd --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 3bd64cf..ca7d4ee 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -1,6 +1,8 @@ name: Sync -on: page_build +on: + push: + branches: [main] jobs: build: