-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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/[email protected] | ||
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/[email protected] | ||
with: | ||
server: ftp.gggeek.altervista.org | ||
|