refactor: readd Node compilation to deploy workflow

This commit is contained in:
Thomas Bishop 2025-07-10 14:46:58 +01:00
parent 77d88b6a77
commit 4291464e49

View file

@ -8,11 +8,13 @@ jobs:
container: node:18
steps:
- uses: actions/checkout@v3
- name: Create dummy file and deploy
- run: npm install
- run: npm run build:posts
- run: npm run build
run: |
echo "test content" > test.txt
echo "${{ secrets.SSH_FORGEJO_KEY }}" > /tmp/ssh_key
chmod 600 /tmp/ssh_key
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_USER }} "bash -c 'rm -rf /var/www/systemsobscure.blog/*'"
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no test.txt ${{ vars.VPS_USER }}:/var/www/systemsobscure.blog/
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no dist/* ${{ vars.VPS_USER }}:/var/www/systemsobscure.blog/
rm /tmp/ssh_key