Skip to content

Commit

Permalink
Added sveltekit job
Browse files Browse the repository at this point in the history
  • Loading branch information
GrbavaCigla authored Aug 19, 2024
1 parent 8c5c858 commit 64aac7f
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
django:
name: Django build
name: Deploy Django
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -34,4 +34,27 @@ jobs:
SCRIPT_BEFORE: |
rm -rf backend/
mkdir backend/
sveltekit:
name: Deploy Sveltekit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/[email protected]
- name: Install packages and build
working-directory: ./frontend/
run: npm i && npm run build
- name: Deploy
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.KEY }}
ARGS: "-rlgoDzvc -i"
SOURCE: "frontend/build/"
TARGET: "/home/${{ secrets.USERNAME }}/frontend/"
REMOTE_HOST: ${{ secrets.HOST }}
REMOTE_USER: ${{ secrets.USERNAME }}
REMOTE_PORT: ${{ secrets.PORT }}
SCRIPT_BEFORE: |
rm -rf frontend/
mkdir frontend/

0 comments on commit 64aac7f

Please sign in to comment.