diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f09a00f6..8880ce39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,25 +4,9 @@ on: tags: - "*.*.**" jobs: - get_branch: - runs-on: ubuntu-latest - outputs: - branch_name: ${{ steps.get_branch_name.outputs.name }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Get branch name - id: get_branch_name - run: | - raw=$(git branch -r --contains ${{ github.ref }}) - branch=$(echo "$raw" | grep "origin/main" | grep -v "HEAD" | sed "s|origin/||" | xargs) - echo "name=$branch" >> "$GITHUB_OUTPUT" build: name: Build distribution runs-on: ubuntu-latest - needs: get_branch - if: needs.get_branch.outputs.branch_name == 'main' steps: - uses: actions/checkout@v4 - name: Set up Python