-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 918 Bytes
/
Copy pathmain.yml
File metadata and controls
39 lines (36 loc) · 918 Bytes
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies for build
run: yarn install
- name: Run tests
run: yarn run test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies for build
run: yarn install
- name: Make production build
run: |
yarn run build:ci
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ftp.codetitlan.org
username: ci-web-deployments@codetitlan.org
password: ${{ secrets.ftp_password }}
local-dir: ./build/
server-dir: public_html/