Merge pull request #7 from idrl-lab/dev

ci: fix docker, pypi
This commit is contained in:
zweien 2021-07-15 13:21:56 +08:00 committed by GitHub
commit cff8bfb054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -29,6 +29,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
if: github.event_name == 'release'

View File

@ -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: |