Skip to content

Commit 7035313

Browse files
committed
do SF last
1 parent be03fba commit 7035313

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/build-release.yml

+21-21
Original file line numberDiff line numberDiff line change
@@ -226,27 +226,6 @@ jobs:
226226
name: "phpList Release File"
227227
retention-days: 3
228228

229-
- name: Upload the files to SF
230-
run: |
231-
export SSHPASS=${{ secrets.SF_PASS }}
232-
if [[ $RELEASE_VERSION =~ "-RC" ]]; then
233-
RELEASE_FOLDER=phplist-development
234-
else
235-
RELEASE_FOLDER=phplist
236-
fi
237-
echo "${{ secrets.SF_HOSTKEY }}" >> ~/.ssh/known_hosts
238-
cd $GITHUB_WORKSPACE
239-
cd ..
240-
241-
sshpass -e sftp -oBatchMode=no -b - ${{ secrets.SF_USERNAME }}@${{ secrets.SF_HOST }} << EOF
242-
cd /home/frs/project/phplist/$RELEASE_FOLDER
243-
mkdir $RELEASE_VERSION
244-
cd $RELEASE_VERSION
245-
put phplist-${RELEASE_VERSION}.*
246-
ls -l
247-
bye
248-
EOF
249-
250229
- name: Set up Docker Buildx
251230
uses: docker/setup-buildx-action@v1
252231

@@ -267,3 +246,24 @@ jobs:
267246
tags: ${{ secrets.DOCKERHUB_REPO }}/${{ secrets.DOCKERHUB_IMAGE }}:${{ env.RELEASE_VERSION }}
268247
build-args: |
269248
VERSION=${{ env.RELEASE_VERSION }}
249+
250+
- name: Upload the files to SF
251+
run: |
252+
export SSHPASS=${{ secrets.SF_PASS }}
253+
if [[ $RELEASE_VERSION =~ "-RC" ]]; then
254+
RELEASE_FOLDER=phplist-development
255+
else
256+
RELEASE_FOLDER=phplist
257+
fi
258+
echo "${{ secrets.SF_HOSTKEY }}" >> ~/.ssh/known_hosts
259+
cd $GITHUB_WORKSPACE
260+
cd ..
261+
262+
sshpass -e sftp -oBatchMode=no -b - ${{ secrets.SF_USERNAME }}@${{ secrets.SF_HOST }} << EOF
263+
cd /home/frs/project/phplist/$RELEASE_FOLDER
264+
mkdir $RELEASE_VERSION
265+
cd $RELEASE_VERSION
266+
put phplist-${RELEASE_VERSION}.*
267+
ls -l
268+
bye
269+
EOF

0 commit comments

Comments
 (0)