Skip to content

Commit 7640dc1

Browse files
committed
Add Github Action to upload to PyPI
Also, add dependabot for github actions
1 parent 22dc024 commit 7640dc1

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-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/publish_pypi.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
7+
jobs:
8+
build_and_deploy:
9+
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
shell: bash -l {0}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.8"
22+
- name: Install build dependencies
23+
run: python -m pip install setuptools wheel
24+
- name: Build wheel
25+
run: python setup.py sdist bdist_wheel
26+
- name: Publish to PyPI
27+
uses: pypa/[email protected]
28+
with:
29+
user: __token__
30+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)