From b5aa7f6608facfb523b2d5bf2fe55a2a6764cc40 Mon Sep 17 00:00:00 2001 From: bra-fsn Date: Thu, 4 Jan 2024 13:41:46 +0100 Subject: [PATCH] yaml --- .github/workflows/publish-to-pypi.yml | 29 ++++++++++++++------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 93aa3a1..8f0a3d3 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,3 +1,4 @@ +--- name: Publish distribution to PyPI on: push jobs: @@ -5,19 +6,19 @@ jobs: name: Build and publish distribution to PyPI runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Set up Python 3 - uses: actions/setup-python@v1 - with: - python-version: '3.x' - - name: Install dependencies + - uses: actions/checkout@master + - name: Set up Python 3 + uses: actions/setup-python@v1 + with: + python-version: 3.x + - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install build - - name: Build package + python -m pip install --upgrade pip + pip install build + - name: Build package run: python -m build --sdist --wheel - - name: Publish distribution to PyPI - if: startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.pypi_token }} + - name: Publish distribution to PyPI + if: startsWith(github.event.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.pypi_token }}