mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-03 02:24:51 +08:00
👷 fix ci
This commit is contained in:
parent
3fe3c1351f
commit
304118c98e
16
.github/workflows/release-github.yml
vendored
16
.github/workflows/release-github.yml
vendored
@ -9,20 +9,28 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-release-draft:
|
update-release-draft:
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: release-drafter/release-drafter@v5
|
- uses: release-drafter/release-drafter@v5
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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
|
- uses: release-drafter/release-drafter@v5
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
name: Release v${GITHUB_REF#refs/tags/} 🌈
|
name: Release ${{ env.TAG_NAME }} 🌈
|
||||||
tag: ${GITHUB_REF#refs/tags/}
|
tag: ${{ env.TAG_NAME }}
|
||||||
publish: true
|
publish: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
5
.github/workflows/release-plugin-docs.yml
vendored
5
.github/workflows/release-plugin-docs.yml
vendored
@ -1,8 +1,9 @@
|
|||||||
name: Release Nonebot Plugin Docs
|
name: Release Nonebot Plugin Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [ published ]
|
tags:
|
||||||
|
- v*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
Loading…
Reference in New Issue
Block a user