feat: implement about us page (#567) #389
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: 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: | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
deploy-app: | |
name: Deploy to dev | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 9 | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "package.json" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: pnpm 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_BUILDER_HOST: ${{ vars.VITE_GRAASP_BUILDER_HOST }} | |
VITE_GRAASP_PLAYER_HOST: ${{ vars.VITE_GRAASP_PLAYER_HOST }} | |
VITE_GRAASP_LIBRARY_HOST: ${{ vars.VITE_GRAASP_LIBRARY_HOST }} | |
VITE_GRAASP_ANALYTICS_HOST: ${{ vars.VITE_GRAASP_ANALYZER_HOST }} | |
VITE_SENTRY_ENV: ${{ vars.VITE_SENTRY_ENV }} | |
VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }} | |
VITE_SHOW_NOTIFICATIONS: ${{ vars.VITE_SHOW_NOTIFICATIONS }} | |
VITE_UMAMI_WEBSITE_ID: ${{ secrets.VITE_UMAMI_WEBSITE_ID }} | |
VITE_UMAMI_HOST: ${{ vars.VITE_UMAMI_HOST }} | |
VITE_RECAPTCHA_SITE_KEY: ${{ secrets.VITE_RECAPTCHA_SITE_KEY }} | |
run: pnpm 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" | |
role-to-assume: ${{ secrets.AWS_ROLE }} | |
aws-region: ${{ vars.AWS_REGION }} | |
aws-s3-bucket-name: ${{ vars.AWS_S3_BUCKET_NAME }} | |
cloudfront-distribution-id: ${{ vars.AWS_CLOUDFRONT_DISTRIBUTION_ID }} |