-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.2 KB
/
uncertainty-sources-app-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
name: Build and Deploy ARC3N
on:
workflow_dispatch:
issues:
types: [opened, reopened, edited, closed, deleted]
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Clone Font Awesome Overwrites ✌️
uses: actions/checkout@v2
with:
repository: abunai-dev/UncertaintySourceArchive-overwrites
path: UncertaintySourceArchive/fonts
token: ${{ secrets.OVERWRITES_READONLY_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install, Fetch and Build 🔧
working-directory: UncertaintySourceArchive
run: |
npm install
npm run fetch-uncertainties
npm run build
- name: Deploy 🚀
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: UncertaintySourceArchive/dist/
remote_path: /home/${{ secrets.USERNAME }}/html/${{ vars.TARGET }}
remote_host: ${{ secrets.SERVER }}
remote_user: ${{ secrets.USERNAME }}
remote_key: ${{ secrets.PRIVATE_KEY }}