From 78bf78f5ae11e98569e04e7196b634416a114520 Mon Sep 17 00:00:00 2001 From: Lucas Weber Date: Fri, 19 Apr 2024 14:00:53 +0200 Subject: [PATCH] add CI for package publishing --- .github/workflows/test_pypi.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test_pypi.yml diff --git a/.github/workflows/test_pypi.yml b/.github/workflows/test_pypi.yml new file mode 100644 index 0000000..f8b50b0 --- /dev/null +++ b/.github/workflows/test_pypi.yml @@ -0,0 +1,26 @@ +name: test-pypi-push + +on: + push: + paths: + - 'changepoynt/**' + - 'tests/**' + - '.github/**' + pull_request: + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: + # retrieve your distributions here + - uses: actions/checkout@v2 + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ \ No newline at end of file