From 85be59eb865b0ac4cc09c8f55b76292e155cc504 Mon Sep 17 00:00:00 2001 From: utagawa kiki Date: Thu, 4 May 2023 19:51:31 +0900 Subject: [PATCH] Fix publish package workflow (#74) * use Python 3.11 for deploy * install build * use build with build phase * use pypa/gh-action-pypi-publish@release/v1 * remove wheel explicit dependency --- .github/workflows/deploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7125462..d7fc2a1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,19 +12,19 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Set up Python 3.7 + - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: '3.11' - name: Install dependencies for build - run: pip install --upgrade setuptools wheel + run: pip install --upgrade setuptools build - name: Build - run: python setup.py sdist bdist_wheel + run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.pypi_password }}