Skip to content

Commit

Permalink
Setup release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed May 19, 2020
1 parent 210f3d7 commit 40c3ab8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- run: pip install poetry==1.0.5
- run: pip install nox==2019.11.9
- run: nox
- run: poetry build
- run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:

strategy:
matrix:
python-version: [3.7, 3.8]
python-version: ['3.7', '3.8']

name: Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install poetry==1.0.5
- run: pip install nox==2019.11.9
- run: nox
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install poetry==1.0.5
- run: pip install nox==2019.11.9
- run: nox
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
/.nox/
/.python-version
/.venv/
/dist/
/poetry.lock
__pycache__/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
Biip interprets the data in barcodes.

[![Tests](https://github.com/jodal/biip/workflows/Tests/badge.svg)](https://github.com/jodal/biip/actions?workflow=Tests)
[![PyPI](https://img.shields.io/pypi/v/biip.svg)](https://pypi.org/project/biip/)

0 comments on commit 40c3ab8

Please sign in to comment.