From 76a60cb9827f36962d716e0799bf076ad8b79d6c Mon Sep 17 00:00:00 2001 From: Hugo Cachitas Date: Wed, 17 Apr 2024 00:45:07 +0100 Subject: [PATCH] ci: setup release step --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d3a04e..852309a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,3 +32,21 @@ jobs: - name: Test with pytest run: | pdm run -v test + + release: + needs: test + runs-on: ubuntu-latest + concurrency: release + permissions: + id-token: write + contents: write + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Python Semantic Release + uses: python-semantic-release/python-semantic-release@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }}