From: Josh Roesslein Date: Wed, 8 Jul 2020 04:03:22 +0000 (-0700) Subject: Add deploy workflow and move ci to test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c7fdea828949f6cfd00f3766a100c24fd00aea89;p=tweepy.git Add deploy workflow and move ci to test --- diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..60c285e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Deploy + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup 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 + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py dist bdist_wheel + twine upload dist/* + diff --git a/.github/workflows/ci.yml b/.github/workflows/test.yml similarity index 98% rename from .github/workflows/ci.yml rename to .github/workflows/test.yml index 7bc13af..80a1a53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: ci +name: test on: [push, pull_request]