-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 935 Bytes
/
main.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
name: Auto Deploy on Push
on:
push:
branches:
- master
paths-ignore:
- '**/README.md'
permissions:
contents: write
jobs:
build:
name: Builder
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node.js 18.x 📀
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies ⚙
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
- name: Build 🔨
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command
env:
VITE_FREECURRENCYAPI_KEY: ${{ secrets.VITE_FREECURRENCYAPI_KEY }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist