Skip to content

Commit

Permalink
more gha cd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Jan 7, 2023
1 parent 68d775e commit 4f6278c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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/[email protected]
with:
server: ftp.gggeek.altervista.org
Expand All @@ -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/[email protected]
with:
server: ftp.gggeek.altervista.org
Expand All @@ -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/[email protected]
with:
server: ftp.gggeek.altervista.org
Expand Down

0 comments on commit 4f6278c

Please sign in to comment.