GH CD: attempt to preserve content of build/source by swapping checkout and artifact download steps.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sat, 13 Aug 2022 17:00:47 +0200
changeset 88 58cff3acaf3d
parent 87 3682a91e7bb2
child 89 9af00a65266a
GH CD: attempt to preserve content of build/source by swapping checkout and artifact download steps.
.github/workflows/build_snap.yml
--- a/.github/workflows/build_snap.yml	Sat Aug 13 16:30:38 2022 +0200
+++ b/.github/workflows/build_snap.yml	Sat Aug 13 17:00:47 2022 +0200
@@ -14,17 +14,17 @@
     runs-on: ubuntu-latest
 
     steps:
-    - name: Download source artifact
-      uses: actions/download-artifact@v3
-      with:
-        name: source_package
-
     - uses: actions/checkout@v3
       with:
         # checkout directly in build/sources so that
         # sources dirs are aside snap dir
         path: build/sources
 
+    - name: Download source artifact
+      uses: actions/download-artifact@v3
+      with:
+        name: source_package
+
     - name: Invoke snapcraft build
       uses: snapcore/action-build@v1
       id: snapcraft