-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (44 loc) · 1.4 KB
/
deploy-dapp.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
name: DEPLOY dapp
on:
push:
branches:
- deployWithGitHubAction
jobs:
check:
name: Build dapp, ready to be deployed
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 9.4.0
- name: Build dapp
run: pnpm build-dapp
env:
ENVIR: PROD
NODE_DEBUG: false
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
COVALENT_API_KEY: ${{ secrets.COVALENT_API_KEY }}
NFT_STORAGE_KEY: ${{ secrets.NFT_STORAGE_KEY }}
- name: Delete .gitignore to include web/dapp in commit
run: rm web/.gitignore
- name: Commit Dapp build
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add web/dapp
git commit -am "${{ github.ref_name }} dapp build !"
- name: Push Dapp build
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: build/${{ github.ref_name }}
force: true
directory: "web/dapp"