revisions.txt is expected in $CWD When building Windows installer, in $CWD/sources for Snap. Deal with it for now.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sun, 14 Aug 2022 19:15:04 +0200
changeset 98 54c0e2662dd3
parent 97 4dd65c75e651
child 99 0623d6d4616b
revisions.txt is expected in $CWD When building Windows installer, in $CWD/sources for Snap. Deal with it for now.
.github/workflows/build_snap.yml
.github/workflows/prep_sources.yml
--- a/.github/workflows/build_snap.yml	Sun Aug 14 16:54:43 2022 +0200
+++ b/.github/workflows/build_snap.yml	Sun Aug 14 19:15:04 2022 +0200
@@ -28,11 +28,10 @@
     - name: untar files
       run: tar -xvf build.tar
 
-    - name: Move snap dir in build/sources
+    - name: Move snap dir and revisions.txt in build/sources
       run: |
-        ls -R
         mv beremiz_public_dist/snap build/sources
-        ls build/sources
+        mv build/revisions.txt build/sources/revisions.txt
 
     - name: Invoke snapcraft build
       uses: snapcore/action-build@v1
--- a/.github/workflows/prep_sources.yml	Sun Aug 14 16:54:43 2022 +0200
+++ b/.github/workflows/prep_sources.yml	Sun Aug 14 19:15:04 2022 +0200
@@ -61,7 +61,7 @@
         touch build/sources/Modbus_src
         touch build/sources/open62541_src
         touch build/own_sources
-        cat >> build/sources/revisions.txt <<EOF
+        cat >> build/revisions.txt <<EOF
         beremiz_public_dist ${{ github.sha }}
         beremiz ${{ env.beremiz_revisionid }}
         matiec ${{ env.matiec_revisionid }}