Actually use workflows correctly

This commit is contained in:
9pfs 2024-04-06 18:33:17 -07:00
parent b0c11dfa5d
commit f783774c34
Signed by: 9pfs
SSH key fingerprint: SHA256:TOcGxMQCfy4VvRM8AzgXErKXdkAtaTcpGXgYMpyoJoY
2 changed files with 5 additions and 12 deletions

View file

@ -11,4 +11,8 @@ jobs:
- uses: actions/checkout@v3
- id: deploy
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

View file

@ -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