18
18
with :
19
19
fetch-depth : 0 # apparently required by tj-actions/changed-files
20
20
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 }}"
24
24
25
25
- name : get changed files - manual
26
26
id : changed-manual
60
60
# build and upload manual
61
61
# NB: this happens _also_ independently of releases!
62
62
- 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.' )) }}
64
64
run : |
65
65
chmod 755 ./doc/build/taskfile
66
66
./doc/build/taskfile setup_tools
@@ -79,14 +79,14 @@ jobs:
79
79
# create release on github, with data from the NEWS file and add docs+demo artifacts
80
80
81
81
- 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.' ) }}
83
83
run : |
84
84
tar -cvzf demofiles.tgz demo
85
85
echo "## XML-RPC for PHP version ${{ github.ref_name }} - $(date +%Y/%m/%d)" > announcement.txt
86
86
tail -n+2 NEWS.md | sed '/## XML-RPC for PHP version/Q' >> announcement.txt
87
87
88
88
- 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.' ) }}
90
90
uses : softprops/action-gh-release@v1
91
91
with :
92
92
body_path : announcement.txt
95
95
96
96
# update github pages with release info
97
97
- 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.' ) }}
99
99
run : |
100
100
git fetch
101
101
git checkout gh-pages
@@ -111,7 +111,7 @@ jobs:
111
111
# deploy the lib to gggeek.altervista.org
112
112
# q: should we filter out alpha/beta releases?
113
113
- 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.' ) }}
115
115
uses :
SamKirkland/[email protected]
116
116
with :
117
117
server : ftp.gggeek.altervista.org
@@ -122,7 +122,7 @@ jobs:
122
122
server-dir : sw/xmlrpc/src/
123
123
dangerous-clean-slate : true
124
124
- 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.' ) }}
126
126
uses :
SamKirkland/[email protected]
127
127
with :
128
128
server : ftp.gggeek.altervista.org
@@ -133,7 +133,7 @@ jobs:
133
133
server-dir : sw/xmlrpc/demo/
134
134
dangerous-clean-slate : true
135
135
- 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.' ) }}
137
137
uses :
SamKirkland/[email protected]
138
138
with :
139
139
server : ftp.gggeek.altervista.org
0 commit comments