diff --git a/.github/workflows/build-node-bridge.yml b/.github/workflows/build-node-bridge.yml index 040951ac2933..f09ddd83ca0e 100644 --- a/.github/workflows/build-node-bridge.yml +++ b/.github/workflows/build-node-bridge.yml @@ -2,13 +2,9 @@ name: "[Build] suite-node-bridge-bin-js" on: push: - paths-ignore: - - "suite-native/**" - - "docs/**" - - "docker/**" - - "ci/**" - - ".vscode/**" - - ".maestro/**" + branches: + - develop + - grdddj/ci_node_bridge_build pull_request: types: [labeled] workflow_dispatch: @@ -47,3 +43,19 @@ jobs: path: | packages/transport-bridge/dist/bin.js retention-days: 3 + + - name: Configure aws credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::538326561891:role/gh_actions_trezor_suite_dev_deploy + aws-region: eu-central-1 + + - name: Upload transport tester + shell: bash + env: + DEPLOY_PATH: s3://dev.suite.sldev.cz/transport-bridge/${{ needs.extract-branch.outputs.branch }} + run: | + echo "DEPLOY_PATH is set to ${DEPLOY_PATH}" + mkdir -p tmp_build_directory + cp -R ./packages/transport-bridge/dist/* tmp_build_directory/ + aws s3 sync --delete tmp_build_directory/ "${DEPLOY_PATH}"