-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.13 KB
/
deploy-prod.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
name: Build and deploy in production
on:
push:
branches:
- main
jobs:
build:
name: Build and deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: yarn build
- name: Deploy to Server
uses: easingthemes/ssh-deploy@v2.1.5
env:
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
ARGS: "-rltgoDzvO --exclude '.next/cache' --exclude '.git' --exclude '.github' --exclude '.env*' --delete"
SOURCE: "./"
REMOTE_HOST: 'egt.community'
REMOTE_USER: 'noderunner'
TARGET: '/var/node-apps/egt-payment'
env:
CI: true
NODE_ENV: 'production'
EASYVEREIN_TOKEN: ${{ secrets.EASYVEREIN_TOKEN }}
MOLLIE_API_KEY: ${{ secrets.MOLLIE_API_KEY }}
PP_HOST: 'https://api.paypal.com'
PP_CLIENT: ${{ secrets.PP_CLIENT }}
PP_SECRET: ${{ secrets.PP_SECRET }}