-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update workflow names and content fix: use preview instead of dev server fix: add env for cypress to get the api host fix: increase cypress build step node memory chore: remove cypress plugin file
- Loading branch information
Showing
163 changed files
with
7,949 additions
and
16,363 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Deploy to development environment | ||
|
||
# Control when the action will run | ||
on: | ||
# Triggers the workflow on push events only for the main branch | ||
push: | ||
branches: | ||
- main | ||
|
||
# Allows to run the workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-app: | ||
name: Deploy to dev | ||
runs-on: ubuntu-latest | ||
environment: development | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Yarn install and Cache dependencies | ||
uses: graasp/graasp-deploy/.github/actions/yarn-install-and-cache@v1 | ||
|
||
- name: Yarn build | ||
# Set environment variables required to perform the build. These are only available to this step | ||
env: | ||
VITE_VERSION: ${{ github.sha }} | ||
VITE_GRAASP_DOMAIN: ${{ vars.VITE_GRAASP_DOMAIN }} | ||
VITE_GRAASP_API_HOST: ${{ vars.VITE_GRAASP_API_HOST }} | ||
VITE_GRAASP_AUTH_HOST: ${{ vars.VITE_GRAASP_AUTH_HOST }} | ||
VITE_GRAASP_PLAYER_HOST: ${{ vars.VITE_GRAASP_PLAYER_HOST }} | ||
VITE_GRAASP_LIBRARY_HOST: ${{ vars.VITE_GRAASP_LIBRARY_HOST }} | ||
VITE_GRAASP_ANALYZER_HOST: ${{ vars.VITE_GRAASP_ANALYZER_HOST }} | ||
VITE_H5P_INTEGRATION_URL: ${{ secrets.VITE_H5P_INTEGRATION_URL }} | ||
VITE_SENTRY_ENV: ${{ vars.VITE_SENTRY_ENV }} | ||
VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }} | ||
# VITE_GA_MEASUREMENT_ID: ${{ secrets.VITE_GA_MEASUREMENT_ID }} | ||
VITE_SHOW_NOTIFICATIONS: ${{ vars.VITE_SHOW_NOTIFICATIONS }} | ||
run: yarn build | ||
shell: bash | ||
|
||
- name: Deploy | ||
uses: graasp/graasp-deploy/.github/actions/deploy-s3@v1 | ||
# Replace input build-folder or version if needed | ||
with: | ||
build-folder: 'build' | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_DEV }} | ||
aws-region: ${{ secrets.AWS_REGION_DEV }} | ||
aws-s3-bucket-name: ${{ secrets.AWS_S3_BUCKET_NAME_GRAASP_COMPOSE_DEV }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }} | ||
cloudfront-distribution-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_GRAASP_COMPOSE_DEV }} |
Oops, something went wrong.