Skip to content

Commit

Permalink
Merge pull request #3 from linyq17/lyq-add-publish-pypi
Browse files Browse the repository at this point in the history
Add publish to pypi
  • Loading branch information
linyq17 authored Nov 24, 2021
2 parents cd56b00 + 98a8bbc commit b7ea18d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: deploy

on: push

jobs:
build-n-publish:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build MMFewShot
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
run: |
pip install twine
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}

0 comments on commit b7ea18d

Please sign in to comment.