GH CI : use artifacts to get data flowing from one workflow to the other
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 28 Jul 2022 17:44:10 +0200
changeset 77 2f3d1cd0bd64
parent 76 1ed6c9812863
child 78 38597d675b03
GH CI : use artifacts to get data flowing from one workflow to the other
.github/workflows/build_bundles.yml
.github/workflows/prep_sources.yml
--- a/.github/workflows/build_bundles.yml	Thu Jul 28 17:20:59 2022 +0200
+++ b/.github/workflows/build_bundles.yml	Thu Jul 28 17:44:10 2022 +0200
@@ -13,6 +13,15 @@
     runs-on: ubuntu-latest
 
     steps:
+    - uses: actions/checkout@v3
+      with:
+          path: beremiz_public_dist
+
+    - name: Download source artifact
+      uses: actions/download-artifact@v3
+      with:
+        name: source_package
+
     - name: Cache docker image
       id: cache-docker
       uses: actions/cache@v3
--- a/.github/workflows/prep_sources.yml	Thu Jul 28 17:20:59 2022 +0200
+++ b/.github/workflows/prep_sources.yml	Thu Jul 28 17:44:10 2022 +0200
@@ -21,10 +21,6 @@
 
 
     steps:
-    - uses: actions/checkout@v3
-      with:
-          path: beremiz_public_dist
-
     # repositories are directly checked out where Makerfile expects them to be
     - uses: actions/checkout@v3
       with:
@@ -60,3 +56,8 @@
         canfestival ${{ env.canfestival_revisionid }}
         EOF
 
+    - name: Upload source artifact
+      uses: actions/upload-artifact@v3
+      with:
+        name: source_package
+        path: build