diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17269ee8..f5258836 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,16 +97,16 @@ jobs: - name: Set tag version id: tag - # https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions - run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} + run: | + echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Set module version id: module - # https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions - run: echo ::set-output name=version::$(hatch --quiet version) + run: | + echo "version=$(hatch --quiet version)" >> $GITHUB_OUTPUT - name: Build and publish titiler packages - if: steps.tag.outputs.tag == steps.module.outputs.version + if: ${{ steps.tag.outputs.version }} == ${{ steps.module.outputs.version}} env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}