-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (48 loc) · 1.12 KB
/
dev.yaml
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
49
50
name: mybutton dev deployment
on:
push:
branches: [dev]
pull_request:
branches: [dev]
jobs:
version_check:
runs-on: ubuntu-latest
steps:
- name: Download Code
uses: actions/checkout@v3
- name: Install Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Version Check
run: |
python otherfiles/version_check.py
build:
runs-on: ubuntu-latest
needs: version_check
steps:
- uses: actions/checkout@v3
- name: Install Node.js 16.15.1
uses: actions/setup-node@v3
with:
node-version: 16.15.1
- run: |
yarn install
yarn build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: craco_build_output
path: build/**
deploy:
runs-on: self-hosted
needs: build
steps:
- uses: actions/checkout@v3
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: craco_build_output
path: build
- run: |
yarn install