Refine auto release workflow (#13)

* change package name from easycv to pai-easycv

* limit publish script to release branch and use ubuntu container
This commit is contained in:
wenmeng zhou 2022-04-19 19:58:39 +08:00 committed by GitHub
parent b1f67f9762
commit df4e54f05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,10 @@
name: release
on: push
on:
push:
branches:
- "release/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@ -8,14 +12,14 @@ concurrency:
jobs:
build-n-publish:
runs-on: [unittest-t4]
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Set up Python
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.6'
- name: Build EasyCV
run: python setup.py sdist bdist_wheel
- name: Publish package

View File

@ -171,7 +171,7 @@ if __name__ == '__main__':
os.chdir('package')
install_requires = parse_requirements('requirements.txt')
setup(
name='easycv',
name='pai-easycv',
version=get_version(),
description='EasyCV framework',
long_description=readme(),