From c7fdea828949f6cfd00f3766a100c24fd00aea89 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Tue, 7 Jul 2020 21:03:22 -0700 Subject: [PATCH] Add deploy workflow and move ci to test --- .github/workflows/deploy.yml | 27 ++++++++++++++++++++++++++ .github/workflows/{ci.yml => test.yml} | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml rename .github/workflows/{ci.yml => test.yml} (98%) 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] -- 2.25.1