mirror of
https://gitcode.com/gh_mirrors/gh/gh-action-pypi-publish.git
synced 2026-07-02 18:27:49 +00:00
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:
+6
-9
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user