Skip to content

Commit 4f6278c

Browse files
committed
more gha cd tests
1 parent 68d775e commit 4f6278c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/cd.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
with:
1919
fetch-depth: 0 # apparently required by tj-actions/changed-files
2020

21-
- name: debug
22-
run: |
23-
echo "${{ github.ref_type }} - ${{ github.ref_name }}"
21+
#- name: debug
22+
# run: |
23+
# echo "${{ github.ref_type }} - ${{ github.ref_name }}"
2424

2525
- name: get changed files - manual
2626
id: changed-manual
@@ -60,7 +60,7 @@ jobs:
6060
# build and upload manual
6161
# NB: this happens _also_ independently of releases!
6262
- name: generate and upload manual
63-
if: ${{ steps.changed-manual.outputs.any_changed == 'true' || (github.ref_type == 'tag' && startsWith('4.', github.ref_name)) }}
63+
if: ${{ steps.changed-manual.outputs.any_changed == 'true' || (github.ref_type == 'tag' && startsWith(github.ref_name, '4.')) }}
6464
run: |
6565
chmod 755 ./doc/build/taskfile
6666
./doc/build/taskfile setup_tools
@@ -79,14 +79,14 @@ jobs:
7979
# create release on github, with data from the NEWS file and add docs+demo artifacts
8080

8181
- name: create release assets
82-
if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
82+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
8383
run: |
8484
tar -cvzf demofiles.tgz demo
8585
echo "## XML-RPC for PHP version ${{ github.ref_name }} - $(date +%Y/%m/%d)" > announcement.txt
8686
tail -n+2 NEWS.md | sed '/## XML-RPC for PHP version/Q' >> announcement.txt
8787
8888
- name: create release on github
89-
if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
89+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
9090
uses: softprops/action-gh-release@v1
9191
with:
9292
body_path: announcement.txt
@@ -95,7 +95,7 @@ jobs:
9595
9696
# update github pages with release info
9797
- name: update website with info about the latest release
98-
if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
98+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
9999
run: |
100100
git fetch
101101
git checkout gh-pages
@@ -111,7 +111,7 @@ jobs:
111111
# deploy the lib to gggeek.altervista.org
112112
# q: should we filter out alpha/beta releases?
113113
- name: upload lib to gggeek.altervista.org - src
114-
if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
114+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
115115
uses: SamKirkland/[email protected]
116116
with:
117117
server: ftp.gggeek.altervista.org
@@ -122,7 +122,7 @@ jobs:
122122
server-dir: sw/xmlrpc/src/
123123
dangerous-clean-slate: true
124124
- name: upload lib to gggeek.altervista.org - demo
125-
if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
125+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
126126
uses: SamKirkland/[email protected]
127127
with:
128128
server: ftp.gggeek.altervista.org
@@ -133,7 +133,7 @@ jobs:
133133
server-dir: sw/xmlrpc/demo/
134134
dangerous-clean-slate: true
135135
- name: upload lib to gggeek.altervista.org - debugger
136-
if: ${{ github.ref_type == 'tag' && startsWith('4.', github.ref_name) }}
136+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
137137
uses: SamKirkland/[email protected]
138138
with:
139139
server: ftp.gggeek.altervista.org

0 commit comments

Comments
 (0)