to pypi using flit
v1
파이썬을 구축하고 게시하는 행동? FLIT를 사용하여 PYPI에 패키지.
작업을 사용하려면 워크 플로 파일에 다음 단계를 추가하십시오 (예 : Github/Workflows/main.yml)
name : publish
# Controls when the workflow will run
on :
# Workflow will run when a release has been published for the package
release :
types :
- published
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch :
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs :
# This workflow contains a single job called "publish"
publish :
# The type of runner that the job will run on
runs-on : ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps :
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses : actions/checkout@v3
- name : Set up Python 3.9
uses : actions/setup-python@v3
with :
python-version : 3.9
cache : pip
- name : To PyPI using Flit
uses : AsifArmanRahman/to-pypi-using-flit@v1
with :
password : ${{ secrets.PYPI_API_TOKEN }}
행동은 다음과 같이 가정합니다.
- 이 프로젝트에는 최상위 디렉토리에
pyproject.toml(또는setup.py)이 있습니다.- 파이썬과 PIP가 설치되어 있습니다.
- name : To PyPI using Flit
uses : AsifArmanRahman/to-pypi-using-flit@v1
with :
password : ${{ secrets.PYPI_API_TOKEN }}- name : To PyPI using Flit
uses : AsifArmanRahman/to-pypi-using-flit@v1
with :
user-name : ${{ secrets.PYPI_USERNAME }}
password : ${{ secrets.PYPI_PASSWORD }}- name : To PyPI using Flit
uses : AsifArmanRahman/to-pypi-using-flit@v1
with :
password : ${{ secrets.TESTPYPI_API_TOKEN }}
repository-url : https://test.pypi.org/legacy/- name : To PyPI using Flit
uses : AsifArmanRahman/to-pypi-using-flit@v1
with :
user-name : ${{ secrets.TESTPYPI_USERNAME }}
password : ${{ secrets.TESTPYPI_PASSWORD }}
repository-url : https://test.pypi.org/legacy/ | 변하기 쉬운 | 설명 | 기본 | 필수의 |
|---|---|---|---|
user-name | pypi/testpypi 사용자 이름 | __token__ | 거짓 |
password | pypi/testpypi password/api 토큰 | 널 | 진실 |
repository-url | 저장소 URL | https://upload.pypi.org/legacy/ | 거짓 |
이 프로젝트의 소스 코드는 MIT 라이센스에 따라 릴리스됩니다. 이 프로젝트는 Github와 관련이 없습니다.