Skip to content

Commit

Permalink
feat: Use pypi trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra committed Mar 10, 2024
1 parent d836d8b commit df2896f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/xsdata
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
Expand All @@ -31,9 +36,6 @@ jobs:
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
18 changes: 9 additions & 9 deletions tests/fixtures/hello/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ class Meta:

@dataclass
class Body:
get_hello_as_string_response: Optional[
GetHelloAsStringResponse
] = field(
default=None,
metadata={
"name": "getHelloAsStringResponse",
"type": "Element",
"namespace": "http://hello/",
},
get_hello_as_string_response: Optional[GetHelloAsStringResponse] = (
field(
default=None,
metadata={
"name": "getHelloAsStringResponse",
"type": "Element",
"namespace": "http://hello/",
},
)
)
fault: Optional["HelloGetHelloAsStringOutput.Body.Fault"] = field(
default=None,
Expand Down

0 comments on commit df2896f

Please sign in to comment.