Skip to content

Commit

Permalink
Attempt deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
H0R5E committed Apr 22, 2024
1 parent ef74e1a commit 15768b5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to NFSN

on:
push:
branches:
- next

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: |
npm run build
rm -r build/api/posts build/api/posts.json
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -rptcivh --delete-after --stats
path: build/
remote_path: /home/public/
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.ssh
node_modules
/build
/.svelte-kit
Expand Down

0 comments on commit 15768b5

Please sign in to comment.