From 375b1ab29be5b824008a4cee389192171fa624bb Mon Sep 17 00:00:00 2001 From: Mohamed Nasser Date: Thu, 29 Aug 2024 17:13:57 +0300 Subject: [PATCH] Added main branch as default --- .github/workflows/release.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c47ab06..d40a512 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,6 +3,8 @@ name: Publish to PyPI on: workflow_dispatch: + branches: + - main inputs: version: description: 'Version to release' @@ -19,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Python 3.10 uses: actions/setup-python@v4 @@ -44,8 +46,8 @@ jobs: - name: Create tag run: | current_version=$(python -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['version'])") - git tag current_version - git push origin current_version + git tag $current_version + git push origin $current_version - name: Publish to PyPI env: