Skip to content

Commit 3350845

Browse files
authored
Merge pull request #13 from VectorInstitute/add_packaging
Add github action for packaging, update pyproject.toml to use poetry
2 parents 70dd368 + 95c02a2 commit 3350845

File tree

3 files changed

+2983
-8
lines changed

3 files changed

+2983
-8
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: publish package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install apt dependencies
12+
run: |
13+
sudo apt-get update
14+
- uses: actions/checkout@v3
15+
- name: Install poetry
16+
run: pipx install poetry
17+
- uses: actions/[email protected]
18+
with:
19+
python-version: 3.8
20+
- name: Build package
21+
run: poetry build
22+
- name: Publish package
23+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
24+
with:
25+
user: __token__
26+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)