From ed2661d960df746bec09b471f37de07f10041d92 Mon Sep 17 00:00:00 2001 From: Elias Garcia Date: Thu, 23 Dec 2021 16:58:33 +0100 Subject: [PATCH] Remove internal testnet Github Action --- .../workflows/internal-testnet-deployment.yml | 47 ------------------- .github/workflows/testnet-deployment.yml | 4 +- 2 files changed, 2 insertions(+), 49 deletions(-) delete mode 100644 .github/workflows/internal-testnet-deployment.yml diff --git a/.github/workflows/internal-testnet-deployment.yml b/.github/workflows/internal-testnet-deployment.yml deleted file mode 100644 index f80f451e..00000000 --- a/.github/workflows/internal-testnet-deployment.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Internal testnet deployment - -on: - push: - tags: - - '*rc*' - -jobs: - deploy: - runs-on: ubuntu-latest - environment: internal-testnet - steps: - - name: Checkout - uses: actions/checkout@v2 - - - uses: actions/setup-node@v2 - with: - node-version: '16' - - - 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: ${{ secrets.AWS_REGION }} - - - name: Create .env file - run: | - echo 'REACT_APP_ENV=development' >> .env - echo 'REACT_APP_PRICE_UPDATER_API_URL=${{ secrets.INTERNAL_TESTNET_PRICE_UPDATER_API_URL }}' >> .env - echo 'REACT_APP_PRICE_UPDATER_API_KEY=${{ secrets.INTERNAL_TESTNET_PRICE_UPDATER_API_KEY }}' >> .env - echo 'REACT_APP_INFURA_API_KEY=${{ secrets.INFURA_API_KEY }}' >> .env - echo 'REACT_APP_WALLETCONNECT_BRIDGE=${{ secrets.WALLETCONNECT_BRIDGE }}' >> .env - echo 'REACT_APP_HERMEZ_API_URL=${{ secrets.INTERNAL_TESTNET_HERMEZ_API_URL }}' >> .env - echo 'REACT_APP_HERMEZ_CONTRACT_ADDRESS=${{ secrets.INTERNAL_TESTNET_HERMEZ_CONTRACT_ADDRESS }}' >> .env - echo 'REACT_APP_WITHDRAWAL_DELAYER_CONTRACT_ADDRESS=${{ secrets.INTERNAL_TESTNET_WITHDRAWAL_DELAYER_CONTRACT_ADDRESS }}' >> .env - echo 'REACT_APP_BATCH_EXPLORER_URL=${{ secrets.INTERNAL_TESTNET_BATCH_EXPLORER_URL }}' >> .env - echo 'REACT_APP_ETHERSCAN_URL=${{ secrets.INTERNAL_TESTNET_ETHERSCAN_URL }}' >> .env - - - name: Install dependencies - run: npm ci - - - name: Generate production build - run: npm run build - - - name: Deploy to S3 Bucket - run: aws s3 sync ./build s3://${{ secrets.INTERNAL_TESTNET_AWS_S3_BUCKET_NAME }} --delete diff --git a/.github/workflows/testnet-deployment.yml b/.github/workflows/testnet-deployment.yml index db1b6231..89a13f85 100644 --- a/.github/workflows/testnet-deployment.yml +++ b/.github/workflows/testnet-deployment.yml @@ -2,8 +2,8 @@ name: Testnet deployment on: push: - branches: - - main + tags: + - '*rc*' jobs: deploy: