Skip to content

Commit

Permalink
add: test workflow triggered by manual
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplants committed Nov 6, 2021
1 parent dbd4194 commit 304e885
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/publish_test.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 304e885

Please sign in to comment.