From 15768b5cd4066c61c2f4c82ea6c887cad11b7dec Mon Sep 17 00:00:00 2001 From: Mathew Topper Date: Mon, 22 Apr 2024 10:50:21 +0100 Subject: [PATCH] Attempt deployment --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..849744e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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/rsync-deployments@7.0.1 + 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 }} diff --git a/.gitignore b/.gitignore index 4402e17..4becd07 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +.ssh node_modules /build /.svelte-kit