From 937091d038ed058ebb7b21bbb5a6f7deb70fa2d5 Mon Sep 17 00:00:00 2001 From: Ryan Avery Date: Tue, 7 May 2024 16:35:16 -0700 Subject: [PATCH 1/2] add pypi token and debug job to see what the github.ref is during release --- .github/workflows/publish.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c811b9e..0bc3a14 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -27,6 +27,10 @@ jobs: python-version: 3.10 - name: Install poetry run: make poetry-install - - name: Build and publish - run: | - make publish + - name: Publish to PyPI + run: poetry publish --username __token__ --password ${{ secrets.PYPI_SECRET }} + print-ref: + runs-on: ubuntu-latest + steps: + - name: Print github.ref + run: echo ${{ github.ref }} From 88d05e32cac82ba84879b36ead8f8c39be6f43c4 Mon Sep 17 00:00:00 2001 From: Ryan Avery Date: Tue, 7 May 2024 16:50:03 -0700 Subject: [PATCH 2/2] remove debug statement, use quotes so version is correct --- .github/workflows/publish.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0bc3a14..3d20f59 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -24,13 +24,8 @@ jobs: - name: Set up Python uses: actions/setup-python@v2.2.2 with: - python-version: 3.10 + python-version: "3.10" - name: Install poetry run: make poetry-install - name: Publish to PyPI run: poetry publish --username __token__ --password ${{ secrets.PYPI_SECRET }} - print-ref: - runs-on: ubuntu-latest - steps: - - name: Print github.ref - run: echo ${{ github.ref }}