forked from idrl/idrlnet
ci: fix docker, pypi
This commit is contained in:
parent
96a935d466
commit
2cbe08faac
|
@ -29,6 +29,14 @@ jobs:
|
||||||
name: Print event_name
|
name: Print event_name
|
||||||
run: echo "$GITHUB_EVENT_NAME, ${{ github.event_name }}, ${{ github.event.release.tag_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
|
name: Get release version
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
|
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
twine upload --repository-url dist/*
|
twine upload dist/*
|
||||||
|
|
||||||
- name: Install from PyPI
|
- name: Install from PyPI
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue