-
Notifications
You must be signed in to change notification settings - Fork 41
41 lines (35 loc) · 1.2 KB
/
deploy-prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "deploy 🚀"
on:
push:
branches: [main]
env:
NUXT_SITE_ENV: production # used for NuxtSEO to disable things like indexing on staging
HUSKY: 0
CI: true
concurrency:
group: production
cancel-in-progress: true
jobs:
build_and_deploy:
env:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_SEARCH_API_KEY }}
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
if: ${{ github.event.repository.full_name == github.repository }}
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
persist-credentials: false # <--- checking this in commit context
- uses: oven-sh/setup-bun@v2
- name: "Install dependencies"
run: bun install --production --frozen-lockfile
- name: "Deploy target: staging"
run: bun run build
- uses: matter-labs/action-hosting-deploy@main
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS }}"
projectId: zksync-docs
channelId: live