From 0e5b4f3c6a776cf696c2b9de1a883211b48a97a7 Mon Sep 17 00:00:00 2001 From: yuji38kwmt Date: Sat, 2 Sep 2023 07:12:52 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E8=87=AA=E5=8B=95=E3=81=A7publish=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=81=9F=E3=82=81=E3=81=AE=E3=82=A2=E3=82=AF=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-to-pypi.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish-to-pypi.yml diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..45c25df --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,25 @@ +name: Publish Python 🐍 distributions 📦 to PyPI + +on: + release: + types: [published] + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install poetry + run: | + python -m pip install "poetry==1.1.15" + - name: Publish + env: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + run: | + poetry config pypi-token.pypi $PYPI_TOKEN + poetry publish --build From e985d5d67f0e01181da950e284fdfe545c1658a1 Mon Sep 17 00:00:00 2001 From: yuji38kwmt Date: Sat, 2 Sep 2023 07:17:09 +0900 Subject: [PATCH 2/2] update README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f472aba..c7edc07 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,10 @@ poetry completions bash | sudo tee /etc/bash_completion.d/poetry.bash-completion ``` ## PyPIへの公開 +[GitHubのReleases](https://github.com/kurusugawa-computer/annofab-3dpc-editor-cli/releases)からリリースを作成してください。 +GitHub Actionsにより自動でPyPIに公開されます。 + +手動でPyPIに公開する場合は、以下のコマンドを実行してください。 ``` $ make publish