diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d38d91ad..7204fe4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,17 +21,17 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: "3.x" - name: Install hatch - run: | + run: | pip install hatch - + - name: Get Version id: version - run: | + run: | echo "version=$(hatch version)" >> $GITHUB_OUTPUT - + publish: runs-on: ubuntu-latest needs: @@ -54,14 +54,14 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: "3.x" - name: Install hatch - run: | + run: | pip install hatch - name: Build SDK - run: | + run: | hatch build - name: Publish Python 🐍 distributions 📦 to PyPI @@ -79,6 +79,11 @@ jobs: - publish steps: + - name: Checkout main branch + uses: actions/checkout@v4.1.7 + with: + ref: main + - name: Slack - Success Message uses: DSdatsme/slack-github-action@env_support if: ${{ success() && needs.publish.result == 'success' }}