Skip to content

Commit

Permalink
Publish to Pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
kojiromike committed Jun 27, 2021
1 parent bd1c383 commit ebdaa45
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
workflow_run:
workflows:
- Release
branches:
- main
types:
- completed

jobs:
release:
runs-on: ubuntu-latest
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: GitHub Login
run: gh auth login --with-token <<< '${{ secrets.GITHUB_TOKEN }}'

- run: pip install poetry poetry-dynamic-versioning

- name: Configure Test Pypi
run: poetry config repositories.testpypi 'https://__token__:${{ secrets.TEST_PYPI_TOKEN }}@test.pypi.org/simple'

- name: Fetch Release Assets
run: gh release download -D dist

- name: Publish
run: poetry publish --dry-run --repository testpypi

0 comments on commit ebdaa45

Please sign in to comment.