Skip to content

Commit ae81ec4

Browse files
committed
Build the python release artifacts in GHA too
1 parent 5f2848f commit ae81ec4

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/debs.yml renamed to .github/workflows/release-artifacts.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
# GitHub actions workflow which builds the debian packages.
1+
# GitHub actions workflow which builds the release artifacts.
22

3-
name: Debs
3+
name: Build release artifacts
44

55
on:
66
push:
7+
# we build on develop and release branches to (hopefully) get early warning
8+
# of things breaking
79
branches: ["develop", "release-*"]
810

11+
# we also rebuild on tags, so that we can be sure of picking the artifacts
12+
# from the right tag.
13+
tags: ["v*"]
14+
915
permissions:
1016
contents: read
1117

@@ -40,5 +46,19 @@ jobs:
4046
- run: ./src/scripts-dev/build_debian_packages "${{ matrix.distro }}"
4147
- uses: actions/upload-artifact@v2
4248
with:
43-
name: packages
49+
name: debs
4450
path: debs/*
51+
52+
build-sdist:
53+
name: "Build pypi distribution files"
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v2
57+
- uses: actions/setup-python@v2
58+
- run: pip install wheel
59+
- run: |
60+
python setup.py sdist bdist_wheel
61+
- uses: actions/upload-artifact@v2
62+
with:
63+
name: python-dist
64+
path: dist/*

0 commit comments

Comments
 (0)