diff --git a/.github/workflows/pip_publish.yml b/.github/workflows/pip_publish.yml index 3ff5c5f..bb7f014 100644 --- a/.github/workflows/pip_publish.yml +++ b/.github/workflows/pip_publish.yml @@ -16,16 +16,16 @@ jobs: with: python-version: "3.9" + - name: Update package + run: | + python -m pip install --upgrade pip + python -m pip install pdm tomlkit + - uses: softprops/action-gh-release@v1 with: tag_name: ${{ github.ref_name }} - - name: Update pyproject.toml version - run: | - python tools/pip_pack.py ${{ github.ref_name }} - - name: Install pdm and publish run: | - python -m pip install --upgrade pip - pip install pdm + python tools/pip_pack.py ${{ github.ref_name }} pdm publish --password ${{ secrets.PYPI_TOKEN }}