Skip to content

Commit

Permalink
#53: Added test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hkage committed Mar 14, 2024
1 parent 635922a commit 74abdd0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
name: Release

on: [push]

#on:
# release:
# types: [created]
on:
release:
types: [created]

jobs:
publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
#name: production
name: testing
name: production
url: https://pypi.org/project/pganonymize/
permissions:
id-token: write
steps:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
23 changes: 23 additions & 0 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test Release

on: [push]

jobs:
publish:
name: Upload release to TestPyPI
runs-on: ubuntu-latest
environment:
name: testing
url: https://test.pypi.org/p/pganonymize/
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 74abdd0

Please sign in to comment.