-
-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (29 loc) · 904 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Upload to KeyCDN
on: workflow_dispatch
jobs:
ftp-upload:
name: 🎉 Upload
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '14'
- name: Update db.json and move it all to ./build/
run: |
mkdir dist
mkdir dist/components
cp components/* dist/components
npm install total4
node db.js
cp db.json dist/components/db.json
ls dist/components -la
- name: FTP Deployer
uses: sand4rt/[email protected]
with:
host: ${{ secrets.KEYCDN_SERVER }}
username: ${{ secrets.KEYCDN_USERNAME }}
password: ${{ secrets.KEYCDN_PASSWORD }}
remote_folder: /flowstream/webcomponents
local_folder: dist/components # optional, local path, default is: dist