Skip to content

Commit

Permalink
Added main branch as default
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedNasser8 committed Aug 29, 2024
1 parent 04b199f commit bcd0dd8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Publish to PyPI

on:
workflow_dispatch:
branches:
- main
inputs:
version:
description: 'Version to release'
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit bcd0dd8

Please sign in to comment.