Skip to content

Commit 855f040

Browse files
authored
adding release workflow (#12)
1 parent f208d88 commit 855f040

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,37 @@ jobs:
4848
run: |
4949
python -m nox --non-interactive --error-on-missing-interpreter \
5050
--session "${{matrix.session}}-${{matrix.python-version}}"
51+
52+
build:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v3
56+
with:
57+
fetch-depth: 0
58+
- uses: actions/setup-python@v4
59+
name: Install Python
60+
with:
61+
python-version: "3.9"
62+
- name: Build sdist and wheel
63+
run: |
64+
python -m pip install -U pip
65+
python -m pip install -U build
66+
python -m build .
67+
- uses: actions/upload-artifact@v3
68+
with:
69+
path: dist/*
70+
71+
upload_pypi:
72+
needs: [tests, build]
73+
runs-on: ubuntu-latest
74+
if: startsWith(github.ref, 'refs/tags/')
75+
steps:
76+
- uses: actions/download-artifact@v3
77+
with:
78+
name: artifact
79+
path: dist
80+
81+
- uses: pypa/gh-action-pypi-publish@v1.6.4
82+
with:
83+
user: __token__
84+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)