👷 fix ci

This commit is contained in:
yanyongyu 2022-01-08 18:23:17 +08:00
parent 3fe3c1351f
commit 304118c98e
2 changed files with 15 additions and 6 deletions

View File

@ -9,20 +9,28 @@ on:
jobs:
update-release-draft:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: release-drafter/release-drafter@v5
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- uses: release-drafter/release-drafter@v5
if: startsWith(github.ref, 'refs/tags/')
with:
name: Release v${GITHUB_REF#refs/tags/} 🌈
tag: ${GITHUB_REF#refs/tags/}
name: Release ${{ env.TAG_NAME }} 🌈
tag: ${{ env.TAG_NAME }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,8 +1,9 @@
name: Release Nonebot Plugin Docs
on:
release:
types: [ published ]
push:
tags:
- v*
jobs:
build: