From da1888b2a32d04b9a8e63c1f343c5095df7813c8 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Thu, 30 May 2024 01:03:04 +0800 Subject: [PATCH] Test deploying to NearlyFreeSpeech with SFTP --- .github/workflows/nearlyfreespeech.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/nearlyfreespeech.yml diff --git a/.github/workflows/nearlyfreespeech.yml b/.github/workflows/nearlyfreespeech.yml new file mode 100644 index 00000000..69d64249 --- /dev/null +++ b/.github/workflows/nearlyfreespeech.yml @@ -0,0 +1,35 @@ +name: Deploy to NearlyFreeSpeech.Net + +# Only run on changes to main. Use main or master depending on whatever your default branch is called. +on: + push: + branches: + - main + +jobs: + deploy_job: + runs-on: ubuntu-latest + name: deploy + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set Up Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install dependencies and build + run: | + bun i + bun run build + + - name: Deploy files + uses: wlixcc/SFTP-Deploy-Action@v1.2.4 + with: + username: 'helenclx_leilukin' + server: 'ssh.nyc1.nearlyfreespeech.net' + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + local_path: './_site/*' + remote_path: '/home/public'