Fix pypi-publish action

This commit is contained in:
c-bata committed 2021-01-12 23:38:45 +09:00
1 parent 13015f9d4a
commit b126e95bd5
1 file changed
+6 -6
+6 -6
View File
@@ -30,6 +30,12 @@ jobs:
- run: python setup.py sdist bdist_wheel
- run: twine check dist/*
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
- name: Create GitHub release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -41,9 +47,3 @@ jobs:
cp ./optuna_dashboard/public/bundle.js ./dist/
cp ./optuna_dashboard/public/bundle.js.LICENSE.txt ./dist/
./ghr_v0.13.0_linux_amd64/ghr -n ${TAGNAME} -b ${TAGNAME} -draft ${TAGNAME} dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}