-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release.yml for publishing Ansible Content Parser to PyPI (#13)
* Add release.yml for testing with TestPyPI.org * Update authors and maintainers sections
- Loading branch information
1 parent
2f3afd7
commit d68581e
Showing
2 changed files
with
39 additions
and
3 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,37 @@ | ||
--- | ||
name: release | ||
|
||
"on": | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
jobs: | ||
pypi-publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: release | ||
url: https://test.pypi.org/project/ansible-content-parser/ | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install tox | ||
run: python3 -m pip install --user "tox==4.9.0" | ||
|
||
- name: Check out src from Git | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # needed by setuptools-scm | ||
|
||
- name: Build dists | ||
run: python -m tox | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ |
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 |
---|---|---|
|
@@ -4,8 +4,7 @@ requires = ["setuptools >= 45", "setuptools_scm[toml]>=6.2"] | |
|
||
[project] | ||
authors = [ | ||
{"email" = "[email protected]", "name" = "Tami Takamiya"}, | ||
{"email" = "[email protected]", "name" = "Yuval Lahav"} | ||
{"email" = "[email protected]", "name" = "Tami Takamiya"} | ||
] | ||
classifiers = [ | ||
'Development Status :: 2 - Pre-Alpha', | ||
|
@@ -25,7 +24,7 @@ description = "The ansible content parser" | |
dynamic = ["dependencies", "optional-dependencies", "version"] | ||
keywords = ["ansible"] | ||
license = {text = "Apache"} | ||
maintainers = [{"email" = "info@ansible.com", "name" = "Ansible by Red Hat"}] | ||
maintainers = [{"email" = "ttakamiy@redhat.com", "name" = "Tami Takamiya"}] | ||
name = "ansible-content-parser" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
|
d68581e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.