From f4ecc5ace83591418ca521f897cc17a07f831e1c Mon Sep 17 00:00:00 2001 From: ErwanDecoster Date: Mon, 9 Dec 2024 14:29:35 +0100 Subject: [PATCH 1/2] adding Hotjar script --- index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/index.html b/index.html index e0b3a7a..eafc2ee 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,21 @@ Content Creator use case demo +
From fa760b44c8875ef7ce9bf0371b09edb2f4967000 Mon Sep 17 00:00:00 2001 From: ErwanDecoster Date: Mon, 9 Dec 2024 15:03:32 +0100 Subject: [PATCH 2/2] adding preview deployment --- .github/workflows/preview.yml | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..95658c1 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,50 @@ +name: preview-ci + +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_CONTENT_CREATOR_USECASE_DEMO_PROJECT_ID }} + +on: + push: + branches-ignore: + - 'main' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + + - name: Install dependencies + run: | + node -v + npm -v + npm ci --no-fund + + - name: Check Prettier + run: npm run check-format + + - name: Set Vercel Token + id: set-vercel-token + run: | + if [ "${{ github.actor }}" = "ErwanDecoster" ]; then + echo "vercel_token=${{ secrets.VERCEL_TOKEN_Erwan }}" >> $GITHUB_OUTPUT + else + echo "vercel_token=${{ secrets.VERCEL_TOKEN }}" >> $GITHUB_OUTPUT + fi + + - name: Vercel deploy to preview + run: | + npm install --global vercel@latest + vercel pull --yes --environment=preview --scope i-exec --token=${{ steps.set-vercel-token.outputs.vercel_token }} + vercel build --scope i-exec --token=${{ steps.set-vercel-token.outputs.vercel_token }} + vercel deploy --prebuilt --scope i-exec --token=${{ steps.set-vercel-token.outputs.vercel_token }}