-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.18 KB
/
Copy pathdevelop.yml
File metadata and controls
56 lines (45 loc) · 1.18 KB
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
51
52
53
54
55
56
name: DEV Build and Deploy
on:
push:
branches: [ develop ]
jobs:
build:
name: Build Project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Uses yarn caching
- uses: c-hive/gha-yarn-cache@v2
# Install dependencies
- name: Install dependencies
run: yarn
# Build the project
- name: Build project
run: yarn build
# Upload build folder for the deploy job
- name: Upload build folder
uses: actions/upload-artifact@v2
with:
name: build
path: build/
deploy:
name: Deploy Project
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
# Download the build folder
- name: Download build folder
uses: actions/download-artifact@v2
with:
name: build
path: build/
# Deploy to github pages website
- uses: JamesIves/github-pages-deploy-action@4.1.5
with:
repository-name: AmazonPriime/amazonpriime.github.io
branch: main
folder: build
target-folder: indproj-dev
clean: true
token: ${{ secrets.PAT }}