Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Add deploy prod
Browse files Browse the repository at this point in the history
  • Loading branch information
krolol committed Apr 18, 2024
1 parent 75b075a commit bb7d627
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release to prod
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 }}

0 comments on commit bb7d627

Please sign in to comment.