diff --git a/.github/workflows/dev-testnet.env b/.github/workflows/dev-testnet.env new file mode 100644 index 0000000000..05fbcc2ee8 --- /dev/null +++ b/.github/workflows/dev-testnet.env @@ -0,0 +1 @@ +RESOURCE_TESTNET_NAME=dev-testnet \ No newline at end of file diff --git a/.github/workflows/manual-deploy-testnet-l2.yml b/.github/workflows/manual-deploy-testnet-l2.yml index abcd9888fd..99cdf04e25 100644 --- a/.github/workflows/manual-deploy-testnet-l2.yml +++ b/.github/workflows/manual-deploy-testnet-l2.yml @@ -28,8 +28,6 @@ on: jobs: build: runs-on: ubuntu-latest - environment: - name: ${{ github.event.inputs.testnet_type }} # Map a step output to a job output outputs: @@ -40,6 +38,17 @@ jobs: POC_ERC20_ADDR: ${{ steps.deployContracts.outputs.POC_ERC20_ADDR }} steps: + - name: Load environment variables + uses: dotenv-actions/setup-dotenv@v2 + with: + dotenv_path: ${{ github.event.inputs.testnet_type }}.env + + - name: 'Deploy Contracts' + id: deployContracts + shell: bash + run: | + echo "Loaded environment variables -> $RESOURCE_TESTNET_NAME" + - uses: actions/checkout@v3 - uses: actions/setup-go@v4