Fix path while making zip #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: (TESTNET) Build and deploy Wallet | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- INFRA-56-wallet-amplify #! To remove before merge | |
jobs: | |
build-and-push: | |
name: Build and push | |
runs-on: ubuntu-20.04 | |
environment: | |
name: testnet | |
steps: | |
- name: GIT | Checkout | |
uses: actions/checkout@v4 | |
- name: Export variables | |
env: | |
VARS_CONTEXT: ${{ toJson(vars) }} | |
run: | | |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | |
to_envs() { jq -r "to_entries[] | select(.key|startswith(\"WS_\")) | \"\(.key)<<$EOF\n\(.value)\n$EOF\n\""; } | |
echo "$VARS_CONTEXT" | to_envs >> $GITHUB_ENV | |
- name: Build and deploy - TESTNET | |
uses: ./.github/actions/build-and-push | |
with: | |
environment: testnet | |
aws-access-key-id: ${{ secrets.AWS_S3_TESTNET_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_S3_TESTNET_SECRET_ACCESS_KEY }} | |
s3-bucket-name: ${{ secrets.AWS_S3_TESTNET_BUCKET_NAME }} | |
amplify-app-id: ${{ secrets.AWS_AMPLIFY_TESTNET_APP_ID }} |