Skip to content

Commit 512ec6d

Browse files
authored
Merge pull request snyk-labs#76 from garethr/publish-workflow
Added a workflow for releasing new versions for tags
2 parents c6763d6 + a2230c9 commit 512ec6d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
release:
10+
name: Release to PyPi
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Python 3.7
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.7
20+
21+
- name: Install poetry
22+
uses: dschep/[email protected]
23+
24+
- name: Install Dependencies
25+
run: poetry install -v
26+
27+
- name: Run pytest
28+
shell: bash
29+
run: poetry publish --build --username '__token__' --password ${{ secrets.PYPI }}

0 commit comments

Comments
 (0)