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
# 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
# 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
# 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
# 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
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
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