Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
leafac committed May 9, 2024
1 parent 2f6cc75 commit 9aecf00
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,15 @@ jobs:
# kill-the-newsletter.com:22 SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13
# kill-the-newsletter.com:22 SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13
EOF
rsync -a ./kill-the-newsletter--ubuntu--${{ github.ref_name }}.tar.gz [email protected]:kill-the-newsletter--ubuntu--${{ github.ref_name }}.tar.gz
ssh [email protected] << "EOF"
mkdir -p /root/kill-the-newsletter/
rm -rf /root/kill-the-newsletter--deploy/
mkdir /root/kill-the-newsletter--deploy/
EOF
rsync -a ./kill-the-newsletter--ubuntu--${{ github.ref_name }}.tar.gz [email protected]:/root/kill-the-newsletter--deploy/kill-the-newsletter--ubuntu--${{ github.ref_name }}.tar.gz
rsync -a ./configuration/kill-the-newsletter.com.mjs [email protected]:kill-the-newsletter/configuration.mjs
rsync -a ./configuration/kill-the-newsletter.service [email protected]:/etc/systemd/system/kill-the-newsletter.service
ssh [email protected] << "EOF"
cd /root/kill-the-newsletter--deploy/
tar -xzf ./kill-the-newsletter--ubuntu--${{ github.ref_name }}.tar.gz
mv /root/kill-the-newsletter--ubuntu--${{ github.ref_name }}.tar.gz /root/kill-the-newsletter--deploy/kill-the-newsletter--ubuntu--${{ github.ref_name }}.tar.gz
(cd /root/kill-the-newsletter--deploy/ && tar -xzf ./kill-the-newsletter--ubuntu--${{ github.ref_name }}.tar.gz)
cp /root/kill-the-newsletter--deploy/kill-the-newsletter/_/configuration/kill-the-newsletter.com.mjs /root/kill-the-newsletter/configuration.mjs
cp /root/kill-the-newsletter--deploy/kill-the-newsletter/_/configuration/kill-the-newsletter.service /etc/systemd/system/kill-the-newsletter.service
systemctl daemon-reload
systemctl stop kill-the-newsletter
mv /root/kill-the-newsletter/kill-the-newsletter/ /root/kill-the-newsletter--deploy/kill-the-newsletter--old/ || true
Expand Down

0 comments on commit 9aecf00

Please sign in to comment.