Skip to content

Commit

Permalink
Add deploy github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
monim67 committed May 18, 2022
1 parent 07338d8 commit e03ffd5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to PyPI

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
env:
POETRY_VIRTUALENVS_CREATE: "false"
steps:
- uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry==1.2.0a1

- name: Build
run: poetry build

- name: Publish
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
"restructuredtext.syntaxHighlighting.disabled": true,
"esbonio.server.enabled": false,
"esbonio.sphinx.confDir": "",
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///.github/workflows/deploy.yml"
},
}

0 comments on commit e03ffd5

Please sign in to comment.