Skip to content

Commit

Permalink
Move more Travis jobs to GitHub Actions (#709)
Browse files Browse the repository at this point in the history
* Add release job

* Remove Travis configuration

* Update docs
  • Loading branch information
bhrutledge authored Oct 19, 2020
1 parent 87610d3 commit 099ae0e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 28 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,19 @@ jobs:
run: python -m pip install tox
- name: Build docs
run: python -m tox -e docs

release:
needs: [lint, types, test, docs]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: python -m pip install tox
- name: Release
run: tox -e release
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ A checklist for creating, testing, and distributing a new version.
#. Merge the pull request, and ensure the `GitHub Actions`_ build passes.
#. Create a new git tag with ``git tag -m "Release v{version}" {version}``.
#. Push the new tag with ``git push upstream {version}``.
#. Watch the release in `Travis`_.
#. Watch the release in `GitHub Actions`_.
#. Send announcement email to `distutils-sig mailing list`_ and celebrate.


Expand All @@ -224,7 +224,6 @@ merge into a single tool; see `ongoing discussion
.. _`tox`: https://tox.readthedocs.io/
.. _`pytest`: https://docs.pytest.org/
.. _`GitHub Actions`: https://github.com/pypa/twine/actions
.. _`Travis`: https://travis-ci.com/github/pypa/twine
.. _`isort`: https://timothycrosley.github.io/isort/
.. _`black`: https://black.readthedocs.io/
.. _`flake8`: https://flake8.pycqa.org/
Expand Down

0 comments on commit 099ae0e

Please sign in to comment.