more gha cd tests 4.9.4
authorgggeek <giunta.gaetano@gmail.com>
Sat, 7 Jan 2023 19:10:47 +0000 (19:10 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sat, 7 Jan 2023 19:10:47 +0000 (19:10 +0000)
.github/workflows/cd.yaml

index 6a23f76..1405e5f 100644 (file)
@@ -18,9 +18,9 @@ jobs:
                 with:
                     fetch-depth: 0 # apparently required by tj-actions/changed-files
 
-            -   name: debug
-                run: |
-                    echo "${{ github.ref_type }} - ${{ github.ref_name }}"
+            #-   name: debug
+            #    run: |
+            #        echo "${{ github.ref_type }} - ${{ github.ref_name }}"
 
             -   name: get changed files - manual
                 id: changed-manual
@@ -60,7 +60,7 @@ jobs:
             # build and upload manual
             # NB: this happens _also_ independently of releases!
             -   name: generate and upload manual
-                if: ${{ steps.changed-manual.outputs.any_changed == 'true' || (github.ref_type == 'tag' && startsWith('4.', github.ref_name)) }}
+                if: ${{ steps.changed-manual.outputs.any_changed == 'true' || (github.ref_type == 'tag' && startsWith(github.ref_name, '4.')) }}
                 run: |
                     chmod 755 ./doc/build/taskfile
                     ./doc/build/taskfile setup_tools
@@ -79,14 +79,14 @@ jobs:
             # create release on github, with data from the NEWS file and add docs+demo artifacts
 
             -   name: create release assets
-                if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
+                if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
                 run: |
                     tar -cvzf demofiles.tgz demo
                     echo "## XML-RPC for PHP version ${{ github.ref_name }} - $(date +%Y/%m/%d)" > announcement.txt
                     tail -n+2 NEWS.md | sed '/## XML-RPC for PHP version/Q' >> announcement.txt
 
             -   name: create release on github
-                if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
+                if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
                 uses: softprops/action-gh-release@v1
                 with:
                     body_path: announcement.txt
@@ -95,7 +95,7 @@ jobs:
 
             # update github pages with release info
             -   name: update website with info about the latest release
-                if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
+                if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
                 run: |
                     git fetch
                     git checkout gh-pages
@@ -111,7 +111,7 @@ jobs:
             # deploy the lib to gggeek.altervista.org
             # q: should we filter out alpha/beta releases?
             -   name: upload lib to gggeek.altervista.org - src
-                if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
+                if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
                 uses: SamKirkland/FTP-Deploy-Action@4.3.3
                 with:
                     server: ftp.gggeek.altervista.org
@@ -122,7 +122,7 @@ jobs:
                     server-dir: sw/xmlrpc/src/
                     dangerous-clean-slate: true
             -   name: upload lib to gggeek.altervista.org - demo
-                if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
+                if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
                 uses: SamKirkland/FTP-Deploy-Action@4.3.3
                 with:
                     server: ftp.gggeek.altervista.org
@@ -133,7 +133,7 @@ jobs:
                     server-dir: sw/xmlrpc/demo/
                     dangerous-clean-slate: true
             -   name: upload lib to gggeek.altervista.org - debugger
-                if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
+                if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
                 uses: SamKirkland/FTP-Deploy-Action@4.3.3
                 with:
                     server: ftp.gggeek.altervista.org