From 0caa95aa3f36c7ac5600040dd19e90074e57f1b1 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 31 Jan 2023 15:30:29 +0100
Subject: [PATCH] [ci] Upload source dist to PyPI on release.

---
 MANIFEST.in                      | 3 +++
 scripts/ci/jobs/build-wheels.yml | 3 +--
 2 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 MANIFEST.in

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 00000000000..d6880d958c9
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,3 @@
+prune Tests/Data
+prune web
+include web/data/versions.json
\ No newline at end of file
diff --git a/scripts/ci/jobs/build-wheels.yml b/scripts/ci/jobs/build-wheels.yml
index 8d7628f4f5b..7ec1f82c100 100644
--- a/scripts/ci/jobs/build-wheels.yml
+++ b/scripts/ci/jobs/build-wheels.yml
@@ -65,14 +65,13 @@ publish wheels:
   stage: release
   needs: ["build wheels linux", "build wheels mac", "build wheels win"]
   tags: [envinf, shell]
-  variables:
-    GIT_STRATEGY: none
   rules:
     - if: $CI_COMMIT_TAG
     - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
     - when: never
   script:
     - >
+      pipx run build --sdist --outdir wheelhouse
       pipx run twine upload
       ${PYPI_REPO}
       ${PYPI_AUTH}
-- 
GitLab