Skip to content

Commit 3f61679

Browse files
committed
default version for testing and check SFTP connectivity
1 parent 3e368d5 commit 3f61679

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build-release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ jobs:
1818
- uses: actions/checkout@v2
1919

2020
- name: Find the version
21-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
21+
run: |
22+
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
23+
if [[ $RELEASE_VERSION = "refs/heads/master" ]]; then
24+
echo "RELEASE_VERSION=testing" >> $GITHUB_ENV
25+
fi
2226
2327
- name: Show the discovered version
2428
run: |
@@ -207,4 +211,15 @@ jobs:
207211
#
208212
- name: Upload the files
209213
run: |
214+
if [[ $RELEASE_VERSION =~ "-RC" ]]; then
215+
RELEASE_FOLDER=phplist-development
216+
else
217+
RELEASE_FOLDER=phplist
218+
fi
219+
220+
sshpass -e sftp -oBatchMode=no -b - ${{ secrets.SF_USERNAME }}@${{ secrets.SF_HOST }} << !
221+
cd /home/frs/project/phplist/
222+
ls -l $RELEASE_FOLDER
223+
bye
224+
!
210225

0 commit comments

Comments
 (0)