diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f14b47..cd14b61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,6 +101,8 @@ jobs: release: runs-on: ubuntu-latest environment: release + outputs: + newest_release_tag: ${{ steps.release_tag.outputs.newest_release_tag }} if: github.ref == 'refs/heads/main' needs: - test @@ -124,6 +126,12 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} pypi_token: ${{ secrets.PYPI_TOKEN }} + - name: Get Release Tag + id: release_tag + shell: bash + run: | + echo "newest_release_tag=$(semantic-release print-version --current)" >> $GITHUB_OUTPUT + build_wheels: needs: [release] @@ -143,18 +151,9 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 - - name: Install python-semantic-release - run: python -m pip install python-semantic-release==7.34.6 - - - name: Get Release Tag - id: release_tag - shell: bash - run: | - echo "::set-output name=newest_release_tag::$(semantic-release print-version --current)" - - uses: actions/checkout@v3 with: - ref: "v${{ steps.release_tag.outputs.newest_release_tag }}" + ref: "v${{ needs.release.outputs.newest_release_tag }}" fetch-depth: 0 - name: Install cibuildwheel