-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from sethmlarson/gha-publish
Add GitHub Action for publishing to PyPI
- Loading branch information
Showing
4 changed files
with
36 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: "Publish to PyPI" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
permissions: | ||
content: "read" | ||
|
||
jobs: | ||
publish: | ||
name: "Publish to PyPI" | ||
runs-on: "ubuntu-latest" | ||
environment: | ||
name: "publish" | ||
steps: | ||
- name: "Checkout repository" | ||
uses: "actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b" | ||
|
||
- name: "Setup Python" | ||
uses: "actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5" | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: "Build dists" | ||
run: | | ||
python -m pip install build | ||
python -m build | ||
- name: "Publish to PyPI" | ||
uses: "pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ build-backend = "flit_core.buildapi" | |
name = "idna" | ||
description = "Internationalized Domain Names in Applications (IDNA)" | ||
readme = "README.rst" | ||
license = {file = "LICENSE.md"} | ||
authors = [ | ||
{name = "Kim Davies", email = "[email protected]"} | ||
] | ||
|