From 3cdc14b07bf943e3df7464e7145dad824e6e2130 Mon Sep 17 00:00:00 2001 From: toniocodo Date: Wed, 8 Nov 2023 21:43:36 +0100 Subject: [PATCH] chore: test action --- .github/workflows/oeth-main.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/oeth-main.yml diff --git a/.github/workflows/oeth-main.yml b/.github/workflows/oeth-main.yml new file mode 100644 index 000000000..def1570f5 --- /dev/null +++ b/.github/workflows/oeth-main.yml @@ -0,0 +1,35 @@ +name: ⚡ OETH main + +on: + workflow_dispatch: + +jobs: + publish-chromatic: + 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: Deploy to S3 bucket + run: aws s3 sync ./dist/apps/oeth s3://origin-defi/oeth --delete