-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.48 KB
/
mainnet.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
name: Testnet deploy
on:
release:
types:
- published
jobs:
deploy:
environment: production
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
env:
CI: false
VITE_API_URL: ${{ secrets.API_URL }}
VITE_NETWORK: mainnet
VITE_BETA_CONTRACT: "0x48AfE14AE52987F6fE6E2F69aB74DC7Ac5a10fd2"
VITE_FARM_CONTRACT: "0x2B4A66557A79263275826AD31a4cDDc2789334bD"
# Testing only
VITE_SESSION_CONTRACT: "0x2C5206E0AbF5B560413503EB4f41ebCefc254C8B"
VITE_INVENTORY_CONTRACT: "0x3c84Fa6b2dC77BcD38F6b01f3659b5611c861319"
VITE_TOKEN_CONTRACT: "0xD1f9c58e33933a993A3891F8acFe05a68E1afC05"
VITE_WISHING_WELL_CONTRACT: "0xBE403A6054af56629D7d591A8fBD8cce3dc66771"
VITE_PAIR_CONTRACT: "0x6f9e92dd4734c168a734b873dc3db77e39552eb6"
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-2
- name: Deploy static site to S3 bucket
run: aws s3 sync ./dist/ s3://sunflower-land.com/play --delete
- name: Deploy static site to S3 bucket
run: aws s3 sync ./dist/ s3://www.sunflower-land.com/play --delete