Skip to content

Commit

Permalink
Added publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesHuisman committed Dec 30, 2022
1 parent 44afc06 commit 1e5e25c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v4.3.0
with:
python-version: 3.8
architecture: x64
cache: "pip"
cache-dependency-path: "poetry.lock"

- name: Install Poetry
run: pipx install poetry

- name: Publish package
run: poetry publish --build --skip-existing --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: Test
on:
pull_request:

Expand Down

0 comments on commit 1e5e25c

Please sign in to comment.