Skip to content

Commit

Permalink
update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
perennialAutodidact committed Mar 16, 2024
1 parent 055f5f0 commit d8e2e96
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ jobs:
./install.sh --accept-all-defaults
exec -l $SHELL
- name: 'Wait for SSH'
run: |
while ! nc -w5 -z ${{ secrets.OCI_INSTANCE_PUBLIC_IP }} 22; do
sleep 5
echo "SSH not available..."
done; echo "SSH ready!"
# - name: 'Wait for SSH'
# run: |
# while ! nc -w5 -z ${{ secrets.OCI_INSTANCE_PUBLIC_IP }} 22; do
# sleep 5
# echo "SSH not available..."
# done; echo "SSH ready!"
#
- name: 'Build'
run: |
npm i -g yarn \
&& yarn install \
&& yarn build \
- name: 'Upload files'
uses: appleboy/scp-action@v0.1.7
uses: wangyucode/sftp-upload-action@v2.0.0
with:
host: ${{secrets.OCI_INSTANCE_PUBLIC_IP}}
username: ${{secrets.OCI_USERNAME}}
key: ${{secrets.OCI_SSH_PRIVATE_KEY}}
passphrase: ${{secrets.OCI_SSH_PRIVATE_KEY_PASSPHRASE}}
source: ./package.json
target: /home/memory-snap/
compress: true
source: ../../
remoteDir: /home/memory-snap/
exclude: '.git', '*.md', 'design', '.husky', '.github', '.*'

0 comments on commit d8e2e96

Please sign in to comment.