From 6c60ad6bc5c5e6b3533732c1fc8f8dd957e66487 Mon Sep 17 00:00:00 2001 From: Florian Rau Date: Tue, 1 Oct 2024 11:13:32 +0100 Subject: [PATCH] Update publish.yaml --- .github/workflows/publish.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3946424..1e7530d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -13,4 +13,21 @@ jobs: - uses: actions/checkout@v4 - uses: pdm-project/setup-pdm@v4 - name: Build distribution packages - run: pdm publish \ No newline at end of file + run: pdm build + - uses: actions/upload-artifact@v4 + with: + path: dist/*.* + retention-days: 1 + publish: + name: Upload to PyPI + needs: build + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/iblqt + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v4 + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1