-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (31 loc) · 1 KB
/
deploy-staging.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
name: "deploy staging 🏗️"
on:
push:
branches: [staging]
workflow_dispatch:
env:
NUXT_SITE_ENV: staging # used for NuxtSEO to disable things like indexing on staging
HUSKY: 0
CI: true
jobs:
build_and_deploy:
env:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
if: ${{ github.event.repository.full_name == github.repository }}
environment: staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v4
with:
ref: "${{ github.event.inputs.ref }}"
- uses: oven-sh/setup-bun@v1
- 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_COMMUNITY_COOKBOOK_STAGING }}"
projectId: community-cookbook-staging
channelId: live