From 2cbe08faac58e9bd5e08f1e808b07c987a682456 Mon Sep 17 00:00:00 2001 From: zweien <278954153@qq.com> Date: Thu, 15 Jul 2021 13:17:16 +0800 Subject: [PATCH] ci: fix docker, pypi --- .github/workflows/docker.yml | 8 ++++++++ .github/workflows/pypi.yml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 77f9f03..c4c67c4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -28,6 +28,14 @@ jobs: - name: Print event_name run: echo "$GITHUB_EVENT_NAME, ${{ github.event_name }}, ${{ github.event.release.tag_name }}" + + - + name: Publish master to Dockerhub + uses: docker/build-push-action@v2 + with: + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/idrlnet:latest + file: Dockerfile - name: Get release version diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 8acced8..3567f2d 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -32,7 +32,7 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | python setup.py sdist bdist_wheel - twine upload --repository-url dist/* + twine upload dist/* - name: Install from PyPI run: |