forked from 9pfs/h.hackclub.app
Actually use workflows correctly
This commit is contained in:
parent
b0c11dfa5d
commit
f783774c34
2 changed files with 5 additions and 12 deletions
|
@ -11,4 +11,8 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- id: deploy
|
- id: deploy
|
||||||
run: |
|
run: |
|
||||||
bash website-deploy-action.sh
|
mkdir ~/.ssh && \
|
||||||
|
echo ${{ secrets.DEPLOY_SSH_KEY}} | base64 -d > ~/.ssh/id_ed25519 && \
|
||||||
|
cat nest-known-hosts-cache.txt > ~/.ssh/known_hosts && \
|
||||||
|
chmod -R go-rwx ~/.ssh && \
|
||||||
|
ssh -T -o UserKnownHostsFile=nest-known-hosts-cache.txt h@hackclub.app
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# Assuming that this is a Debian container.
|
|
||||||
# apt-get update && \
|
|
||||||
# apt-get upgrade -y && \
|
|
||||||
# Apparently ssh is installed, lol
|
|
||||||
# apt install -y openssh-client && \
|
|
||||||
mkdir ~/.ssh && \
|
|
||||||
echo $DEPLOY_SSH_KEY | base64 -d > ~/.ssh/id_ed25519 && \
|
|
||||||
cat nest-known-hosts-cache.txt > ~/.ssh/known_hosts && \
|
|
||||||
chmod -R go-rwx ~/.ssh && \
|
|
||||||
ssh -T -o UserKnownHostsFile=nest-known-hosts-cache.txt h@hackclub.app
|
|
Loading…
Reference in a new issue