From c8ed5a5efeab4d5dbfe2e94e9b3033dff90271a3 Mon Sep 17 00:00:00 2001 From: TAG-Epic Date: Wed, 5 Jul 2023 19:43:12 +0200 Subject: [PATCH] ci: add automatic release publishing to pypi --- .github/workflows/release.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..d909fc316 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +name: Release +on: + release: + types: ["created"] + workflow_dispatch: {} + +permissions: + id-token: write + +jobs: + release: + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.11 + - name: Install dependencies + run: | + poetry install --no-root + - name: Build + run: | + poetry build + - name: Publish release + uses: pypa/gh-action-pypi-publish@release/v1 + +