From 7d6fb9bb785823f070bf6aaa53bf8864f845d9e9 Mon Sep 17 00:00:00 2001 From: Doug Ransom Date: Sun, 8 Oct 2023 10:43:09 -0700 Subject: [PATCH] new publish script, new natlinkcore --- .github/workflows/python-publish.yml | 25 +++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..9110a34 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,25 @@ +name: Publish Package 📦 to PyPI +on: + release: + types: [published] # with prerelease and release + +permissions: + contents: read + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing +jobs: + build_and_publish: + # Set up the environment `CI` references the secret `PYPI_API_TOKEN` in repository settings + # https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#referencing-an-environment + environment: CI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Installing build Dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + diff --git a/pyproject.toml b/pyproject.toml index 6b13406..057e607 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ readme = "README.md" dependencies = ["dtactions >= 1.5.7", "debugpy >= 1.2.0", "pywin32 >= 304", - "natlinkcore >= 5.3.5", + "natlinkcore >= 5.3.6", "pysimplegui"] classifiers=[ "Development Status :: 4 - Beta",