mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-11 11:18:39 +08:00
update
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
build-frontend:
|
||||
@@ -19,7 +20,7 @@ jobs:
|
||||
with:
|
||||
name: frontend
|
||||
path: ./admin-frontend/build/
|
||||
publish-pypi:
|
||||
publish-pypi-github:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-frontend
|
||||
|
||||
@@ -38,12 +39,21 @@ jobs:
|
||||
- name: Publish PyPI
|
||||
run: poetry publish --build -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} || echo "Already pushed to pypi"
|
||||
|
||||
- name: Upload Release Assets
|
||||
uses: alexellis/upload-assets@0.2.3
|
||||
- run: |
|
||||
echo "TAG_NAME=${GITHUB_REF#refs/tags/} >> $GITHUB_ENV"
|
||||
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
with:
|
||||
name: Release ${{ env.TAG_NAME }}
|
||||
tag: ${{ env.TAG_NAME }}
|
||||
publish: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
asset_paths: '["./dist/*"]'
|
||||
|
||||
- run: |
|
||||
gh release upload --clobber ${{ env.TAG_NAME }} dist/*
|
||||
|
||||
|
||||
publish-docker:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-frontend
|
||||
|
||||
Reference in New Issue
Block a user