From b8bd14f6be65d13b3e73e0814b05ce89f23175c7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 7 Apr 2024 22:06:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/pypi.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 06b9727..f531f30 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -1,7 +1,7 @@ --- name: Build & maybe upload PyPI package # taken from github.com/hynek/structlog - + on: push: branches: [master] @@ -10,23 +10,23 @@ types: - published workflow_dispatch: - + permissions: contents: read id-token: write - + jobs: build-package: name: Build & verify package runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - + - uses: hynek/build-and-inspect-python-package@v2 - + # Upload to Test PyPI on every commit on master. release-test-pypi: name: Publish in-dev package to test.pypi.org @@ -34,19 +34,19 @@ if: github.event_name == 'push' && github.ref == 'refs/heads/master' runs-on: ubuntu-latest needs: build-package - + steps: - name: Download packages built by build-and-inspect-python-package uses: actions/download-artifact@v4 with: name: Packages path: dist - + - name: Upload package to Test PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ - + # Upload to real PyPI on GitHub Releases. release-pypi: name: Publish released package to pypi.org @@ -54,13 +54,13 @@ if: github.event.action == 'published' runs-on: ubuntu-latest needs: build-package - + steps: - name: Download packages built by build-and-inspect-python-package uses: actions/download-artifact@v4 with: name: Packages path: dist - + - name: Upload package to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1