You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1010 B
YAML
39 lines
1010 B
YAML
name: 🚀 Deploy AH
|
|
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
gh-win-us-deploy:
|
|
name: 🎉 Deploy AH to US
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 🚚 Get latest code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: 📂 Sync files
|
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
|
with:
|
|
server: ${{ secrets.US_FTP_SERVER }}
|
|
username: ${{ secrets.US_FTP_USER }}
|
|
password: ${{ secrets.US_FTP_PASSWORD }}
|
|
port: ${{ secrets.US_FTP_PORT }}
|
|
local-dir: ./
|
|
server-dir: /origin-www.asiahighlights.com/
|
|
# dry-run: true
|
|
exclude: |
|
|
**/.git*
|
|
**/.git*/**
|
|
**/node_modules/**
|
|
**/aspbackup/**
|
|
**/pic/**
|
|
**/videos/**
|
|
**/web.config
|
|
**/.well-known/**
|
|
*.jpg
|
|
*.png
|
|
*.gif
|
|
.ftp-deploy-sync-state.json
|