Skip to content

Commit

Permalink
create my own deploy with SCP...
Browse files Browse the repository at this point in the history
  • Loading branch information
Muirrum committed Oct 25, 2023
1 parent 96b35f5 commit 64f9771
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ jobs:
with:
name: hkgi.tar.gz

- name: Deploy with SCP
uses: i3h/deploy-with-scp@v1
with:
src: ./hkgi.tar.gz
dest: ${{ secrets.SSH_DIR }}/hkgi-new.tar.gz
username: ${{ secrets.SSH_USER }}
server-ip: ${{ secrets.SSH_HOST }}
ssh-key: ${{ secrets.SSH_KEY }}

- name: Configure SSH
run: |
mkdir -p ~/.ssh
Expand All @@ -70,6 +61,11 @@ jobs:
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_KEY: ${{ secrets.SSH_KEY }}

- name: Deploy with SCP
run: scp ./hkgi.tar.gz "staging:$SSH_DIR/hkgi-new.tar.gz"
env:
SSH_DIR: ${{ secrets.SSH_DIR }}

- name: Extract tarball on production host
run: ssh staging tar xzvf "$SSH_DIR/hkgi-new.tar.gz" -C "$SSH_DIR/hkgi"
env:
Expand Down

0 comments on commit 64f9771

Please sign in to comment.