-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.03 KB
/
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
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Build with react-scripts and deploy via FTP
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf ssh://[email protected]/
- name: Use Node.js
uses: actions/setup-node@v2
- name: Install packages
run: npm ci
- name: Build React project
run: npm run build
env:
REACT_APP_SOUNDCLOUD_ID: ${{ secrets.SOUNDCLOUD_ID }}
REACT_APP_SOUNDCLOUD_REDIRECT: ${{ secrets.SOUNDCLOUD_REDIRECT }}
- name: Deploy via FTP
uses: sebastianpopp/ftp-action@releases/v2
with:
localDir: ./build/
remoteDir: ./
host: chi-node5.websitehostserver.net:21
user: [email protected]
password: ${{ secrets.FTP_PASSWORD }}