-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.17 KB
/
deploy-main.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
51
52
53
name: Deploy Prod
on:
workflow_dispatch:
push:
branches: [ main ]
# paths:
# - public/**
# - src/**
env:
REPO: mfactory-lab/albus-defi-prod
URL: defi.albus.finance
jobs:
build:
runs-on: ubuntu-latest
environment:
name: production
url: https://${{ env.URL }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm
- name: Bump version
uses: phips28/gh-action-bump-version@master
id: version
# with:
# tag-prefix: 'v'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install
run: pnpm install --frozen-lockfile
- name: Build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
pnpm run build
cp dist/index.html dist/404.html && touch dist/.nojekyll
echo ${{ env.URL }} > dist/CNAME
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
repository-name: ${{ env.REPO }}
token: ${{ secrets.PAT }}
folder: dist