-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (36 loc) · 1.01 KB
/
publish-master.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
name: Publish master to prod
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: set the bloody FA Key
run: scripts/set_the_bloody_fa_pro_key.sh
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_PRO_KEY }}
- name: Install
uses: CultureHQ/actions-yarn@master
with:
args: install
- name: Lint
uses: CultureHQ/actions-yarn@master
with:
args: lint
- name: Build
uses: CultureHQ/actions-yarn@master
with:
args: build
- name: Copy via ssh
uses: garygrossgarten/github-action-scp@v0.5.3
if: github.ref == 'refs/heads/master'
with:
local: dist/
remote: /var/www/crisis.app/
host: search.crisis.app
username: ${{ secrets.FTP_USERNAME }}
privateKey: ${{ secrets.DEPLOY_PRIVATE_KEY }}
passphrase: ${{ secrets. DEPLOY_KEY_PASSWORD }}