Added pipeline
This commit is contained in:
parent
4127f6af14
commit
63a31b3b80
1 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/deploy.yml
Normal file
31
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node 20
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
|
- name: Install Node.js dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: 'npm run build-only'
|
||||||
|
|
||||||
|
- name: Deploy to Server
|
||||||
|
uses: wlixcc/SFTP-Deploy-Action@v1.2.6
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.FTP_USERNAME }}
|
||||||
|
server: ${{ secrets.FTP_HOST }}
|
||||||
|
ssh_private_key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
||||||
|
local_path: './dist/*'
|
||||||
|
remote_path: ${{ secrets.FTP_PATH }}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue