Merge pull request #6 from zkSync-Community-Hub/update-theme #7
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
name: "deploy staging 🏗️" | |
on: | |
push: | |
branches: [staging] | |
env: | |
NUXT_SITE_ENV: staging # used for NuxtSEO to disable things like indexing on staging | |
jobs: | |
build_and_deploy: | |
env: | |
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }} | |
NUXT_PUBLIC_SITE_URL: ${{ secrets.NUXT_PUBLIC_SITE_URL }} | |
if: ${{ github.event.repository.full_name == github.repository }} | |
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 | |
- name: "Deploy target: staging" | |
run: bun run generate | |
- 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 |