-
Notifications
You must be signed in to change notification settings - Fork 44
39 lines (31 loc) · 912 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Generate Package
# Trigger the workflow on push to the master
# These branches are protected, so will run when a PR is merged
# Copying the approach from ahobsonsayers for the release, although not yet deploying to pypi.
on:
push:
branches:
- master
jobs:
publish:
name: Publish Wheel Assets
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Clone Repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run automated tests
run: python -m unittest -v
- name: Set up Poetry
run: python -m pip install poetry
- name: Build Wheel and Tarball
run: poetry build -vvv
- name: Upload release artifacts
uses: actions/upload-artifact@v2
with:
name: "built-package"
path: "dist/*"