File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments