Skip to content

Commit

Permalink
Merge pull request #2 from iExecBlockchainComputing/feature/adding-ho…
Browse files Browse the repository at this point in the history
…tjar

adding Hotjar script
  • Loading branch information
ErwanDecoster authored Dec 10, 2024
2 parents 79931f2 + fa760b4 commit 3494d93
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@
<link rel="icon" type="image/png" href="/src/assets/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Creator use case demo</title>
<script>
(function (h, o, t, j, a, r) {
h.hj =
h.hj ||
function () {
(h.hj.q = h.hj.q || []).push(arguments);
};
h._hjSettings = { hjid: 3518387, hjsv: 6 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script');
r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
</script>
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit 3494d93

Please sign in to comment.