diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7e726c708..4cd36c124 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -121,10 +121,12 @@ jobs: # https://github.com/docker/metadata-action - name: Extract Docker metadata id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: crazy-max/ghaction-docker-meta@v1 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: weecology/retriever tag-custom: latest + tag-semver: | + {{raw}} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 99b22db3d..538d83c60 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -30,12 +30,14 @@ jobs: . - name: Publish distribution 📦 to Test PyPI + if: github.event_name == 'pull_request' uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ + - name: Publish distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.PYPI_API_TOKEN }}