Add release drafter and pubilsh on tag creation (#2428)

This commit is contained in:
Liuyang Wan
2023-02-19 17:51:21 +08:00
committed by GitHub
parent c7e3ae9421
commit b7daaf1980
3 changed files with 57 additions and 3 deletions
+8
View File
@@ -24,4 +24,12 @@ jobs:
run: tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.1.0
draft:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+4 -3
View File
@@ -1,14 +1,15 @@
name: Publish to PyPI
on:
release:
types: [created]
push:
tags:
- "*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies