Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wesdoyle committed May 16, 2020
1 parent dac3072 commit ae71e03
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Create Release Artifact

on:
release:
type: [published]

jobs:
create-release-artifact:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build using Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: install dependencies [pip]
run: |
python -m pip install pip --upgrade pip
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: run linter [flake8]
run: flake8 .

- name: run unit tests [pytest]
run: pytest

- name: create build artifact [sdist]
run: python setup.py sdist

- name: get release name
id: get_release_name
run: echo ::set-out name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: upload build artifact
uses: actions/upload-artifact@v2
with:
name: limbus-${{ steps.get_release_name.outputs.VERSION }}
path: dist/*

0 comments on commit ae71e03

Please sign in to comment.