refactor: readd Node compilation to deploy workflow
This commit is contained in:
parent
77d88b6a77
commit
4291464e49
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue