diff --git a/.github/workflows/prod.yaml b/.github/workflows/prod.yaml new file mode 100644 index 0000000..576c4ee --- /dev/null +++ b/.github/workflows/prod.yaml @@ -0,0 +1,23 @@ +name: Release to dev +on: + push: + branches: + - master + 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.prod .env; npm ci' + build_command: 'npm run build' + path_to_static_files_to_upload: 'build' + aws_account_id: ${{ vars.PRD_CORE_AWS_ACCOUNT_ID }} + s3_bucket_name: 'qr-code-scanner.core.aws.cere.io' + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN_READ }} \ No newline at end of file