-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.33 KB
/
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
45
46
47
48
49
50
51
52
53
54
name: Build and Deploy
on:
push:
branches:
- main
paths:
- "src/**"
- "public/**"
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code 🛎
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Download Resume 📜
uses: xsalazar/actions/downloader@master
with:
url: ${{ secrets.RESUME_URL }}
filename: "public/resume.pdf"
- name: Download Terraform Certification 💾
uses: xsalazar/actions/downloader@master
with:
url: ${{ secrets.TERRAFORM_CERTIFICATION_URL }}
filename: "public/terraform-cert.pdf"
- name: Download AWS Certification 💾
uses: xsalazar/actions/downloader@master
with:
url: ${{ secrets.AWS_CERTIFICATION_URL }}
filename: "public/aws-cert.pdf"
- name: Setup Node 🏗
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages
folder: build
CLEAN: true # Automatically remove deleted files from the deploy branch