-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (42 loc) · 1020 Bytes
/
deploy.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
50
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
code-check:
runs-on: ubuntu-20.04
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v2.4.0
with:
node-version: "16.11.0"
- name: Install dependencies
run: "yarn"
- name: Lint
run: "yarn lint:root"
- name: Test compile
run: "yarn build:test"
deploy:
needs: code-check
runs-on: ubuntu-20.04
if: github.event_name != 'pull_request'
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Deploying to Dokku server
uses: dokku/github-action@v1.0.1
with:
branch: main
git_remote_url: ${{ secrets.GIT_REMOTE_URL }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}