From 1a5886d6538fb9aa957e27ca8909e0da99c78631 Mon Sep 17 00:00:00 2001 From: kim Date: Thu, 4 Dec 2025 15:16:19 +0100 Subject: [PATCH] ci: change app id to vars, remove deploy stage workflow --- .github/workflows/deploy-prod.yml | 2 +- .github/workflows/deploy-stage.yml | 55 ------------------------------ 2 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 .github/workflows/deploy-stage.yml diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index ef0adb96..e869f47f 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -46,7 +46,7 @@ jobs: with: # Replace input build-folder or version if needed build-folder: 'build' - graasp-app-id: ${{ secrets.APP_ID }} + graasp-app-id: ${{ vars.APP_ID }} version: 'latest' aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_PROD }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PROD }} diff --git a/.github/workflows/deploy-stage.yml b/.github/workflows/deploy-stage.yml deleted file mode 100644 index 9315ed9e..00000000 --- a/.github/workflows/deploy-stage.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Deploy to staging environment - -# Controls when the action will run -on: - # Triggers the workflow on repository-dispatch event - repository_dispatch: - types: [staging-deployment] - - # Allows to run the workflow manually from the Actions tab - workflow_dispatch: - inputs: - tag: - description: Tag or branch to deploy - required: false - default: main - type: string - -jobs: - deploy-app: - name: Deploy to staging - runs-on: ubuntu-latest - environment: staging - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ github.event.client_payload.tag || inputs.tag }} - - - 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_API_HOST: ${{ vars.VITE_API_HOST }} - VITE_GRAASP_APP_KEY: ${{ secrets.APP_KEY }} - VITE_SENTRY_ENV: staging - VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }} - VITE_VERSION: ${{ github.event.client_payload.tag || inputs.tag }} - # add any env variable needed by your app here - run: yarn build - shell: bash - - - name: Deploy - uses: graasp/graasp-deploy/.github/actions/deploy-s3-app@v1 - with: - # Replace input build-folder or version if needed - build-folder: 'build' - graasp-app-id: ${{ secrets.APP_ID }} - version: 'latest' - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_STAGE }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGE }} - aws-region: ${{ vars.APPS_AWS_REGION_STAGE }} - aws-s3-bucket-name: ${{ vars.AWS_S3_BUCKET_NAME_APPS_STAGE }} - cloudfront-distribution-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_APPS_STAGE }}