Adapt to new yml based github actions

Co-Authored-By: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
This commit is contained in:
Mathias Fussenegger
2019-08-20 22:48:52 +02:00
parent 0bc3d275be
commit 25d67dc298
4 changed files with 74 additions and 29 deletions
+6 -9
View File
@@ -4,17 +4,14 @@ LABEL "maintainer"="Sviatoslav Sydorenko <wk+re-actors@sydorenko.org.ua>"
LABEL "repository"="https://github.com/re-actors/gh-action-pypi-publish"
LABEL "homepage"="https://github.com/re-actors/gh-action-pypi-publish"
LABEL "com.github.actions.name"="pypi-publish"
LABEL "com.github.actions.description"="Upload Python distribution packages to PyPI"
LABEL "com.github.actions.icon"="upload-cloud"
LABEL "com.github.actions.color"="yellow"
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ADD LICENSE.md /LICENSE.md
RUN pip install --upgrade --no-cache-dir twine
ENTRYPOINT ["twine"]
CMD ["upload", "dist/*"]
WORKDIR /app
COPY ./LICENSE.md /app/
COPY ./twine-upload.sh /app/
RUN chmod +x /app/twine-upload.sh
ENTRYPOINT ["/app/twine-upload.sh"]