From 55dcdb3f443bb5fec67c6c7a0682dd21d24b7bbe Mon Sep 17 00:00:00 2001 From: Oleg Yankovich <33641729+krolol@users.noreply.github.com> Date: Thu, 18 Apr 2024 19:31:26 +0200 Subject: [PATCH] Add deploy to dev --- .github/workflows/dev.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/dev.yaml diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml new file mode 100644 index 0000000..9ce5b1e --- /dev/null +++ b/.github/workflows/dev.yaml @@ -0,0 +1,23 @@ +name: Release to dev +on: + push: + branches: + - dev + workflow_dispatch: + +permissions: + id-token: write + contents: read + +jobs: + build_and_deploy: + uses: cere-io/reusable-workflows/.github/workflows/deploy-to-cloudfront.yaml@master + with: + build_container: 'node:18-buster-slim' + install_packages_command: 'cp .env.dev .env; npm ci' + build_command: 'npm run build' + path_to_static_files_to_upload: 'build' + aws_account_id: ${{ vars.DEV_CORE_AWS_ACCOUNT_ID }} + s3_bucket_name: 'qr-code-scanner-dev.core-dev.aws.cere.io.s3.amazonaws.com' + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN_READ }} \ No newline at end of file