mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-19 18:36:42 +00:00
👷 update doc ci
This commit is contained in:
28
.github/workflows/release-github.yml
vendored
Normal file
28
.github/workflows/release-github.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
update-release-draft:
|
||||
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 }}
|
||||
|
||||
- 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/}
|
||||
publish: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Reference in New Issue
Block a user