-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.11 KB
/
dev.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
name: Publish Dev Website
on:
push:
branches: [ old/react ]
jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 2
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: yarn install
- run: yarn build
- name: FTP-Deploy-Action
uses: SamKirkland/[email protected]
with:
local-dir: build
ftp-server: sftp://51.222.31.214/var/www/dumbcode.net/dev
ftp-username: ubuntu
ftp-password: ${{ secrets.WEBSITE_FTP_PASSWORD }}
known-hosts: ${{ secrets.WEBSITE_FTP_KNOWN_HOSTS }}
args: --all
Github-Webhook-If-Fail:
needs: FTP-Deploy-Action
if: failure()
runs-on: ubuntu-latest
steps:
- uses: sarisia/[email protected]
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
status: failure
nodetail: true
title: Error In Job
description: "[Click to view.](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"