Skip to content

Commit b31a3b7

Browse files
authored
Deploy on release (#180)
1 parent 58e5b81 commit b31a3b7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
branches: '*'
66

7+
push:
8+
branches:
9+
- master
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest

.github/workflows/build_and_deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Build
22
on:
3-
push:
4-
branches: master
3+
release:
4+
types: [published]
5+
56

67
jobs:
78
build-n-publish:
@@ -32,7 +33,6 @@ jobs:
3233
- name: Package
3334
run: python setup.py sdist
3435
- name: Publish distribution 📦 to PyPI
35-
if: startsWith(github.ref, 'refs/tags')
3636
uses: pypa/gh-action-pypi-publish@master
3737
with:
3838
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules/
55
.ipynb_checkpoints
66
*.tsbuildinfo
77
lckr_jupyterlab_variableinspector/labextension
8+
.vscode
89

910
# Created by https://www.gitignore.io/api/python
1011
# Edit at https://www.gitignore.io/?templates=python

0 commit comments

Comments
 (0)