From a70e43acf6f09025ba12a33e9cdd6b8460e314fa Mon Sep 17 00:00:00 2001 From: Sebastian Smiley Date: Tue, 22 Oct 2024 14:47:37 -0400 Subject: [PATCH 1/2] release.yml workflow --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c6eab13 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Build and publish + +on: + push: + +jobs: + build: + name: Build wheel and sdist + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.ref }} + - uses: hynek/build-and-inspect-python-package@v2 + + publish: + name: Publish to PyPI + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + environment: + name: publishing + url: https://pypi.org/p/target-apprise + needs: build + permissions: + contents: write + id-token: write + + steps: + - uses: actions/download-artifact@v4 + with: + name: Packages + path: dist + - uses: svenstaro/upload-release-action@v2 + with: + file: dist/*.whl + tag: ${{ github.ref }} + overwrite: true + file_glob: true + - uses: pypa/gh-action-pypi-publish@v1.10.3 + with: + attestations: true \ No newline at end of file From 1d4dc4c37996217a83c319bfc2fae725f623cbba Mon Sep 17 00:00:00 2001 From: Sebastian Smiley Date: Tue, 22 Oct 2024 15:00:22 -0400 Subject: [PATCH 2/2] specify readme in pyproject.toml --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 9b6107a..a2e589c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,7 @@ keywords = [ "Apprise", ] license = "Apache 2.0" +readme = "README.md" [tool.poetry.dependencies] python = "<3.11,>=3.7.1"