From 516b919d44e0cff62310da056bb2665ce711ea13 Mon Sep 17 00:00:00 2001 From: Kyle D Date: Sat, 18 Feb 2023 15:56:40 -0700 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 20c6181..861606d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,28 +7,27 @@ on: jobs: build-n-publish: - name: Build and py-allspice 📦 to PyPI + name: Build and deploy py-allspice 📦 to PyPI runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 - name: Set up Python 3.10 - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: '3.10' - name: Install pypa/setuptools run: >- - python -m - pip install wheel + python -m pip install build - name: Extract tag name id: tag run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3 | sed -e 's/v//1') - name: Update version in setup.py run: >- - sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py - - name: Build a binary wheel + sed -i "s/{{\s*VERSION_PLACEHOLDER\s*}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py + - name: Build a wheel run: >- - python setup.py sdist bdist_wheel + python -m build - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@master with: - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_DEPLOY_TOKEN }} \ No newline at end of file