Add github action to deploy

This commit is contained in:
2021-11-23 23:46:01 -06:00
parent 76a180f627
commit facd5f90c8
5 changed files with 59 additions and 12594 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Buid and Deploy
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2.1.2
with:
node-version: '12.x'
- run: npm install
- run: npm run build
- name: FTP Deploy
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: 21
protocol: ftps
security: strict
state-name: ../.ftp-deploy-sync-state.json
local-dir: ./dist/itsfiveoclockwhere/