summary refs log tree commit diff
path: root/.github/workflows/release-artifacts.yml
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-07-13 00:20:11 +0100
committerRichard van der Hoff <richard@matrix.org>2021-07-13 00:20:11 +0100
commitae81ec428d4fc0600b5cc06df2c2b8cb696d43c9 (patch)
tree1c42707b5c8ea25f9f911b771e4f84a612f819e7 /.github/workflows/release-artifacts.yml
parentbuild debs in GHA (#10247) (diff)
downloadsynapse-ae81ec428d4fc0600b5cc06df2c2b8cb696d43c9.tar.xz
Build the python release artifacts in GHA too
Diffstat (limited to '')
-rw-r--r--.github/workflows/release-artifacts.yml (renamed from .github/workflows/debs.yml)26
1 files changed, 23 insertions, 3 deletions
diff --git a/.github/workflows/debs.yml b/.github/workflows/release-artifacts.yml
index e03a419426..9d1fb89834 100644
--- a/.github/workflows/debs.yml
+++ b/.github/workflows/release-artifacts.yml
@@ -1,11 +1,17 @@
-# GitHub actions workflow which builds the debian packages.
+# GitHub actions workflow which builds the release artifacts.
 
-name: Debs
+name: Build release artifacts
 
 on:
   push:
+    # we build on develop and release branches to (hopefully) get early warning
+    # of things breaking
     branches: ["develop", "release-*"]
 
+    # we also rebuild on tags, so that we can be sure of picking the artifacts
+    # from the right tag.
+    tags: ["v*"]
+
 permissions:
   contents: read
 
@@ -40,5 +46,19 @@ jobs:
       - run: ./src/scripts-dev/build_debian_packages "${{ matrix.distro }}"
       - uses: actions/upload-artifact@v2
         with:
-          name: packages
+          name: debs
           path: debs/*
+
+  build-sdist:
+    name: "Build pypi distribution files"
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-python@v2
+      - run: pip install wheel
+      - run: |
+          python setup.py sdist bdist_wheel
+      - uses: actions/upload-artifact@v2
+        with:
+          name: python-dist
+          path: dist/*