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: