From 28a227f801834d050aeebb2671ed3c634bbb8af5 Mon Sep 17 00:00:00 2001 From: Alexandre Lavigne Date: Tue, 2 Apr 2024 19:38:07 +0200 Subject: [PATCH] TO REMOVE - test push to test-pypi --- .github/workflows/release.yaml | 57 +++++++++++++++++----------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e7843051a..20f645885 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,10 +3,9 @@ name: Releases on: push: tags: - - 'v*' + - "v*" jobs: - release: runs-on: ubuntu-latest permissions: @@ -15,30 +14,30 @@ jobs: id-token: write environment: release steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup python - uses: actions/setup-python@v5 - with: - python-version: "3.9" - - name: Setup tox - run: pip install tox - - name: Run linter - run: tox -e lint - - name: Run tests - run: tox -e py - - name: Build package - run: tox -e build - - name: Create release - uses: ncipollo/release-action@v1 - with: - artifacts: dist/gspread-* - token: ${{ secrets.GH_TOKEN }} - generateReleaseNotes: True - artifactErrorsFailBuild: True - - name: Publish to TestPyPi - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - - name: Publish to PyPi - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Checkout + uses: actions/checkout@v4 + - name: Setup python + uses: actions/setup-python@v5 + with: + python-version: "3.9" + - name: Setup tox + run: pip install tox + - name: Run linter + run: tox -e lint + - name: Run tests + run: tox -e py + - name: Build package + run: tox -e build + - name: Create release + uses: ncipollo/release-action@v1 + with: + artifacts: dist/gspread-* + token: ${{ secrets.GH_TOKEN }} + generateReleaseNotes: True + artifactErrorsFailBuild: True + - name: Publish to TestPyPi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + #- name: Publish to PyPi + # uses: pypa/gh-action-pypi-publish@release/v1