Skip to content

Commit

Permalink
自动pypi发布
Browse files Browse the repository at this point in the history
  • Loading branch information
boy-hack committed Jul 22, 2020
1 parent db3159a commit f2698cd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 40 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload Python Package

on:
tags:
- v*

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -r requirements.txt
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ include LICENSE
include README.md
include CHANGELOG.md
include CONTRIBUTORS.md
recursive-include pocsuite3 *
recursive-include pocsuite3 *
recursive-exclude pocsuite3 __pycache__
recursive-exclude pocsuite3 *.py[co]
Empty file removed build.py
Empty file.
39 changes: 0 additions & 39 deletions tests/test_proxy.py

This file was deleted.

0 comments on commit f2698cd

Please sign in to comment.