workflow: Add release workflow

This commit is contained in:
陈凯龙
2022-02-21 16:04:26 +08:00
parent 110ce25784
commit c5cf00c38a
7 changed files with 27 additions and 163 deletions

View File

@@ -1,10 +1,9 @@
name: deploy
# v3 分支 push 代码的时候触发
on:
push:
branches:
- v3
- master
jobs:
push-to-gh-pages:

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

@@ -0,0 +1,24 @@
name: Create Release
on:
push:
tags:
- v*
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release for Tag
id: release_tag
uses: yyx990803/release-tag@master
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}
with:
tag_name: ${{ github.ref }}
body: |
Please refer to [CHANGELOG.md](https://github.com/kailong321200875/vue-element-plus-admin/blob/master/CHANGELOG.md) for details.