-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from iExecBlockchainComputing/feature/adding-ho…
…tjar adding Hotjar script
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |
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