-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 964 Bytes
/
web.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
45
46
47
48
name: "CI for Web Builds"
on:
pull_request:
paths:
- ".github/workflows/web.yml"
- "Makefile"
- "lib/web/**"
push:
branches-ignore: ["pr/**"]
tags: ["**"]
paths:
- ".github/workflows/web.yml"
- "Makefile"
- "lib/web/**"
workflow_dispatch:
inputs:
deploy:
description: "Deploy to Production"
required: false
default: "no"
defaults:
run:
shell: "bash"
jobs:
build:
name: "Web Build/Test/Deploy"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v4
- name: "Build Website"
run: make web-build
- name: "Test Website"
run: make web-test
- name: "Deploy Website"
if: inputs.deploy == 'yes'
env:
DEPLOY_WEB_PASSWORD: ${{ secrets.RAE_WEB_PASSWORD }}
DEPLOY_WEB_USERNAME: ${{ secrets.RAE_WEB_USERNAME }}
run: make deploy-web "DEPLOY_WEB_HOSTNAME=${RAE_WEB_HOSTNAME}"