GH CD: Merge sources and snap dir instead of just giving checkout and artfifact download the same path
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sat, 13 Aug 2022 17:26:17 +0200
changeset 90 ab4e99dc80cb
parent 89 9af00a65266a
child 91 8d8e7a792903
GH CD: Merge sources and snap dir instead of just giving checkout and artfifact download the same path
.github/workflows/build_snap.yml
--- a/.github/workflows/build_snap.yml	Sat Aug 13 17:01:48 2022 +0200
+++ b/.github/workflows/build_snap.yml	Sat Aug 13 17:26:17 2022 +0200
@@ -18,13 +18,18 @@
       with:
         # checkout directly in build/sources so that
         # sources dirs are aside snap dir
-        path: build/sources
+        path: beremiz_public_dist
 
     - name: Download source artifact
       uses: actions/download-artifact@v3
       with:
         name: source_package
 
+    - name: Move snap dir in build/sources
+      run: |
+        mv beremiz_public_dist/snap build/sources
+        ls build/sources
+
     - name: Invoke snapcraft build
       uses: snapcore/action-build@v1
       id: snapcraft