Merge pull request #155 from canopas/fix-tags-and-pupeeter-issue #402
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 dev | |
# on: | |
# push: | |
# branches: | |
# - main | |
# jobs: | |
# deploy-dev: | |
# runs-on: ubuntu-latest | |
# permissions: | |
# id-token: write | |
# contents: read | |
# steps: | |
# - name: Checkout | |
# uses: actions/[email protected] | |
# - name: Configure AWS credentials | |
# uses: aws-actions/configure-aws-credentials@v1 | |
# with: | |
# role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-frontend-access | |
# aws-region: ap-south-1 | |
# - name: Build frontend and push on ECR | |
# run: | | |
# cd website | |
# echo NEXT_PUBLIC_IFRAMELY_KEY=${{ secrets.IFRAMELY_KEY_DEV }} >> .env | |
# echo NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY_DEV }} >> .env | |
# echo NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=${{ secrets.MIXPANEL_PROJECT_TOKEN_DEV }} >> .env | |
# echo NEXT_PUBLIC_STRAPI_URL=${{ secrets.STRAPI_URL }} >> .env | |
# echo NEXT_PUBLIC_STRAPI_DOMAIN=${{ secrets.STRAPI_DOMAIN }} >> .env | |
# echo NEXT_PUBLIC_WEBSITE_URL=${{ secrets.WEBSITE_URL_DEV }} >> .env | |
# echo NEXT_PUBLIC_API_BASE=${{ secrets.API_BASE_DEV }} >> .env | |
# bash ./../deploy/deploy-ecr-image.sh dev-blog ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-blog | |
# - name: Trigger Canopas website Workflow | |
# uses: actions/github-script@v6 | |
# with: | |
# github-token: ${{ secrets.WORKFLOW_TOKEN }} | |
# script: | | |
# await github.rest.repos.createDispatchEvent({ | |
# owner: 'canopas', | |
# repo: 'canopas-website', | |
# event_type: 'deploy-blog-dev', | |
# }); |