-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (31 loc) · 1.14 KB
/
oeth-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
name: ⚡ OETH main
on:
workflow_dispatch:
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Build oeth
run: VITE_ALCHEMY_ID=$alchemy VITE_WALLET_CONNECT_PROJECT_ID=$walletConnect VITE_GTM_CONTAINER_ID=$gtm VITE_SENTRY_DSN=$sentry pnpm nx build oeth
env:
alchemy: ${{ secrets.VITE_ALCHEMY_ID }}
walletConnect: ${{ secrets.VITE_WALLET_CONNECT_PROJECT_ID }}
gtm: ${{ secrets.VITE_GTM_CONTAINER_ID }}
sentry: ${{ secrets.VITE_SENTRY_DSN }}
- name: Zip artefact
run: cd ./dist/apps/oeth && zip -r oeth.zip .
- name: Deploy to S3 bucket
run: aws s3 sync ./dist/apps/oeth/oeth.zip s3://origin-defi --delete