From 7e0831e468b6aa72cac136238984ed2f6c9c15a1 Mon Sep 17 00:00:00 2001 From: Gregory Bell Date: Wed, 4 Sep 2024 15:22:57 -0600 Subject: [PATCH] Migrate to trusted publishers --- .github/workflows/{python-publish.yml => ci.yaml} | 14 +++++++------- README.md | 2 +- pyproject.toml | 5 +++-- 3 files changed, 11 insertions(+), 10 deletions(-) rename .github/workflows/{python-publish.yml => ci.yaml} (71%) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/ci.yaml similarity index 71% rename from .github/workflows/python-publish.yml rename to .github/workflows/ci.yaml index 1f7ef30..139d037 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,9 @@ name: Upload Python Package -on: push +on: + push: + tags: + - '*' permissions: @@ -8,9 +11,9 @@ permissions: jobs: deploy: - runs-on: ubuntu-latest - + permissions: + id-token: write steps: - uses: actions/checkout@v3 - name: Set up Python @@ -24,7 +27,4 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@releases/v1 diff --git a/README.md b/README.md index 1fe1022..a905088 100644 --- a/README.md +++ b/README.md @@ -107,4 +107,4 @@ Skip Reason: Skipping this test :) ``` ### License -This package is licensed under the Unlicense. Feel free to use it for any purpose commercial or non-commercial. \ No newline at end of file +This package is licensed under the Unlicense. Feel free to use it for any purpose commercial or non-commercial. diff --git a/pyproject.toml b/pyproject.toml index 2c9b44c..4c06374 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,8 @@ build-backend = "setuptools.build_meta" [project] name = "Better-PyUnit-Format" -version = "0.2.0" +authors = [{name = "Gregory Bell", email="trihard.studios@outlook.com"}] +version = "0.2.1" description = "A more readable text output for Python's built in unittest framework" readme = "README.md" -requires-python = ">=3.5" \ No newline at end of file +requires-python = ">=3.5"