-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.15 KB
/
Copy pathbuild-and-deploy.yml
File metadata and controls
45 lines (40 loc) · 1.15 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
name: "Build and deploy the SPA"
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup node environment
uses: actions/setup-node@v3
with:
cache: "yarn"
- name: Install dependencies
run: yarn install --no-progress --non-interactive --pure-lockfile
- name: Compile the SPA
run: yarn build
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Retrieve production artifacts
uses: actions/download-artifact@v3
with:
name: dist
- name: Initializes an empty repository
run: git init
- run: echo "pillfall.me" > CNAME
- uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
coauthor_email: jebuitragoc@unal.edu.co
coauthor_name: Joar Esteban Buitrago Carrillo
message: 🚀 Deploy PillFall page
branch: gh-pages
force: true