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

Commit

Permalink
Add deploy to stage
Browse files Browse the repository at this point in the history
  • Loading branch information
krolol committed Apr 23, 2024
1 parent ecab9b3 commit c03b881
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release to stage
on:
push:
branches:
- 'releases/**'
- 'hotfix/**'
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.stage .env; npm ci'
build_command: 'npm run build'
path_to_static_files_to_upload: 'build'
aws_account_id: ${{ vars.STG_CORE_AWS_ACCOUNT_ID }}
s3_bucket_name: 'qr-code-scanner-stg.core-stage.aws.cere.io'
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_READ }}

0 comments on commit c03b881

Please sign in to comment.