Skip to content

Commit 92d3794

Browse files
committed
wip change CD workflow to trigger updates on tanoconsulting.com
1 parent 9ea256e commit 92d3794

File tree

1 file changed

+21
-58
lines changed

1 file changed

+21
-58
lines changed

.github/workflows/cd.yaml

Lines changed: 21 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -108,61 +108,24 @@ jobs:
108108
git push
109109
git checkout ${{ github.ref_name }}
110110
111-
# deploy_to_altervista:
112-
# if: ${{ startsWith(github.ref_name, '4.') && !(contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc')) }}
113-
# runs-on: ubuntu-latest
114-
# steps:
115-
# - name: checkout code
116-
# uses: actions/checkout@v3
117-
#
118-
# # add the bits of jsxmlrpc that make the debugger nicer, so that they get uploaded to the demo server
119-
# - name: setup visualeditor for the debugger
120-
# #if: ${{ steps.changed-manual.outputs.any_changed == 'true' || (github.ref_type == 'tag' && startsWith(github.ref_name, '4.')) }}
121-
# run: |
122-
# chmod 755 ./taskfile
123-
# ./taskfile setup_debugger_visualeditor
124-
#
125-
# # upload the lib to gggeek.altervista.org via ftp
126-
#
127-
# - name: upload lib to gggeek.altervista.org - src
128-
# #if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
129-
# uses: SamKirkland/FTP-Deploy-Action@v4.3.5
130-
# with:
131-
# server: ftp.gggeek.altervista.org
132-
# username: ${{ secrets.ftp_gggeek_altervista_org_user }}
133-
# password: ${{ secrets.ftp_gggeek_altervista_org_password }}
134-
# protocol: ftps
135-
# local-dir: ./src/
136-
# server-dir: src/
137-
# dangerous-clean-slate: true
138-
# - name: upload lib to gggeek.altervista.org - demo
139-
# #if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
140-
# uses: SamKirkland/FTP-Deploy-Action@v4.3.5
141-
# with:
142-
# server: ftp.gggeek.altervista.org
143-
# username: ${{ secrets.ftp_gggeek_altervista_org_user }}
144-
# password: ${{ secrets.ftp_gggeek_altervista_org_password }}
145-
# protocol: ftps
146-
# local-dir: ./demo/
147-
# server-dir: demo/
148-
# dangerous-clean-slate: true
149-
# # NB: codegen and discuss demos might not work anyway unless sys_get_temp_dir() is writeable
150-
# exclude: |
151-
# **/*.pl
152-
# **/*.py
153-
# **/readme.md
154-
# **/codegen.php
155-
# **/discuss.php
156-
# **/testsuite.php
157-
# **/wrapper.php
158-
# - name: upload lib to gggeek.altervista.org - debugger
159-
# #if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
160-
# uses: SamKirkland/FTP-Deploy-Action@v4.3.5
161-
# with:
162-
# server: ftp.gggeek.altervista.org
163-
# username: ${{ secrets.ftp_gggeek_altervista_org_user }}
164-
# password: ${{ secrets.ftp_gggeek_altervista_org_password }}
165-
# protocol: ftps
166-
# local-dir: ./debugger/
167-
# server-dir: debugger/
168-
# dangerous-clean-slate: true
111+
deploy_to_tanoconsulting_dot_com:
112+
# testing: run this on every tag, not only proper releases
113+
#if: ${{ startsWith(github.ref_name, '4.') && !(contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc')) }}
114+
runs-on: ubuntu-latest
115+
steps:
116+
- name: create canary file
117+
run: |
118+
mkdir canary
119+
touch canary/please_update.txt
120+
121+
- name: upload canary file to tanoconsulting.com
122+
#if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, '4.') }}
123+
uses: SamKirkland/FTP-Deploy-Action@v4.3.6
124+
with:
125+
server: ftp.tanoconsulting.com
126+
username: ${{ secrets.ftp_tanoconsulting_com_user }}
127+
password: ${{ secrets.ftp_tanoconsulting_com_password }}
128+
#protocol: ftps
129+
local-dir: ./canary/
130+
#server-dir: ./
131+
log-level: verbose

0 commit comments

Comments
 (0)