Test deploying to NearlyFreeSpeech with SFTP

This commit is contained in:
Helen Chong 2024-05-30 01:03:04 +08:00
parent 9250161426
commit da1888b2a3
1 changed files with 35 additions and 0 deletions

35
.github/workflows/nearlyfreespeech.yml vendored Normal file
View File

@ -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'