From 304e885bf9b1fbd7e6713a39af734740e24960f6 Mon Sep 17 00:00:00 2001 From: eggplants Date: Sat, 6 Nov 2021 23:59:13 +0900 Subject: [PATCH] add: test workflow triggered by manual --- .github/workflows/publish.yml | 6 ------ .github/workflows/publish_test.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/publish_test.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ce44956..b055c3c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,12 +21,6 @@ jobs: pip install poetry - name: Build run: poetry build - # - name: Publish (test) - # uses: pypa/gh-action-pypi-publish@master - # with: - # user: __token__ - # password: ${{ secrets.TEST_PYPI_API_TOKEN }} - # repository_url: https://test.pypi.org/legacy/ - name: Publish (production) uses: pypa/gh-action-pypi-publish@master with: diff --git a/.github/workflows/publish_test.yml b/.github/workflows/publish_test.yml new file mode 100644 index 0000000..c4804f5 --- /dev/null +++ b/.github/workflows/publish_test.yml @@ -0,0 +1,27 @@ +name: Publish Package + +on: + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Setup Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + run: | + pip install --upgrade pip + pip install poetry + - name: Build + run: poetry build + - name: Publish (test) + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/