Merge pull request #119 from Cerebellum-Network/refactoring #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release to stage | |
on: | |
push: | |
branches: | |
- 'release/**' | |
- 'hotfix/**' | |
jobs: | |
build-and-deploy: | |
uses: Cerebellum-Network/reusable-workflows/.github/workflows/[email protected] | |
with: | |
runs-on: '["self-hosted", "cere-network-large"]' | |
build_container: 'node:20-buster' | |
deploy_container: 'ubuntu:20.04' | |
install_packages_command: 'yarn install' | |
build_command: 'yarn build' | |
path_to_static_files_to_upload: 'packages/apps/build' | |
secrets: | |
NETWORK_AWS_ACCESS_KEY_ID: ${{ secrets.STG_NETWORK_AWS_ACCESS_KEY_ID }} | |
NETWORK_AWS_SECRET_ACCESS_KEY: ${{ secrets.STG_NETWORK_AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME_STG }} | |
CF_DISTRIBUTION_ID: ${{ secrets.CF_DISTRIBUTION_ID_STG }} |