-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.02 KB
/
cicd.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: cicd template
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install Dependencies
run: npm install
- name: Build Project
run: npm run build
#- name: Deploy to OVH Hosting for example
# uses: SamKirkland/[email protected]
# with:
# server: ${{ secrets.OVH_FTP_SERVER }}
# username: ${{ secrets.OVH_FTP_USERNAME }}
# password: ${{ secrets.OVH_FTP_PASSWORD }}
# local-dir: ./dist/
# server-dir: /www/
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: yonebi-version-1
path: ./dist
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: yonebi-version-1
path: 'build'