From 7a5593dfaa176f27bce9f129ceb6e83e09b4b099 Mon Sep 17 00:00:00 2001 From: Augustin Cisterne-Kaas Date: Thu, 5 Oct 2023 17:00:12 +0800 Subject: [PATCH] ci: build new action to build on pypi (#58) --- .github/workflows/ci.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15bccae..a7235ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,8 +70,19 @@ jobs: with: fetch-depth: 0 - name: Python Semantic Release - uses: browniebroke/python-semantic-release@fix/version-parsing-commit + uses: python-semantic-release/python-semantic-release@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - repository_username: __token__ - repository_password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file + pypi: + needs: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: python3 -m pip install --upgrade build && python3 -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file