Skip to content

Commit

Permalink
Merge pull request #1651 from henrykironde/releaseerror
Browse files Browse the repository at this point in the history
Repair CI/CD publish to docker and PYPI
  • Loading branch information
henrykironde authored Apr 26, 2022
2 parents cc841ad + 3488740 commit 7e2cd12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 7e2cd12

Please sign in to comment.