Поддержка Android в Download Center
This commit is contained in:
36
.gitea/build.yaml
Normal file
36
.gitea/build.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Build and Publish Landing Page
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build the landing page
|
||||
run: npm run build
|
||||
|
||||
- name: Upload to SSH
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ secrets.LAND_SSH_HOST }}
|
||||
username: ${{ secrets.LAND_SSH_USERNAME }}
|
||||
password: ${{ secrets.LAND_SSH_PASSWORD }}
|
||||
port: 22
|
||||
source: "dist/*"
|
||||
target: "/var/www/html"
|
||||
rm: true
|
||||
Reference in New Issue
Block a user