diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a9390d..7237cbc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,19 @@ name: release + +permissions: + contents: write + pull-requests: read + on: push: branches: - 'main' - 'releases/**' +env: + SERVER: production + + jobs: run: name: Bump and release @@ -34,5 +43,8 @@ jobs: - name: build run: hatch build - - name: release - run: hatch release \ No newline at end of file + - name: publish + env: + HATCH_INDEX_USER: __token__ + HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }} + run: hatch publish \ No newline at end of file diff --git a/src/zshgpt/__about__.py b/src/zshgpt/__about__.py index c886e1a..f805386 100644 --- a/src/zshgpt/__about__.py +++ b/src/zshgpt/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2023-present Anders Steen