]> https://gitweb.dealii.org/ - dealii.git/commitdiff
github-windows: only create archive if on master.
authorMarc Fehling <mafehling.git@gmail.com>
Wed, 20 Sep 2023 05:57:19 +0000 (23:57 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Wed, 20 Sep 2023 06:11:01 +0000 (00:11 -0600)
.github/workflows/windows.yml

index f35231c4438ba00cd27b974c0070e7a34cdcaa7a..35dd73105c5eed9bd64b484dec77e79b87de76fa 100644 (file)
@@ -56,27 +56,32 @@ jobs:
       shell: bash
       run: |
         cmake --build build --parallel 2 --target install
-        cd c:/project
-        7z a dealii-windows.zip *
     - name: test library
       shell: bash
       run: |
         cmake --build build --parallel 2 --target test
     - name: archive library
       # run only if a PR is merged into master
-      if: github.ref == 'refs/heads/master'
+      if: ${{ github.ref == 'refs/heads/master' }}
+      shell: bash
+      run: |
+        cd c:/project
+        7z a dealii-windows.zip *
+    - name: upload library
+      # run only if a PR is merged into master
+      if: ${{ github.ref == 'refs/heads/master' }}
       uses: actions/upload-artifact@v3
       with:
         name: dealii-windows.zip
         path: c:/project/dealii-windows.zip
-    - name: archive error 1
+    - name: upload CMakeOutput
       uses: actions/upload-artifact@v3
       if: always()
       continue-on-error: true
       with:
         name: windows-serial-CMakeOutput.log
         path: build/CMakeFiles/CMakeOutput.log
-    - name: archive error 2
+    - name: upload CMakeError
       uses: actions/upload-artifact@v3
       if: always()
       continue-on-error: true

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.