Skip to content

Commit

Permalink
chore: setup staging deployment and preview in separate project
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Mar 22, 2024
1 parent 7a5026b commit 89704df
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 50 deletions.
15 changes: 2 additions & 13 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
{
"projects": {
"default": "zksync-docs"
},
"targets": {
"zksync-docs": {
"hosting": {
"prod": [
"zksync-docs"
],
"staging": [
"zksync-docs-staging"
]
}
}
"default": "zksync-docs-staging-5eb09",
"prod": "zksync-docs"
},
"etags": {}
}
5 changes: 2 additions & 3 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ jobs:
uses: matter-labs/action-hosting-deploy@main
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS }}"
target: staging
projectId: zksync-docs
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING_5EB09 }}"
projectId: zksync-docs-staging-5eb09
5 changes: 2 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- uses: matter-labs/action-hosting-deploy@main
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS }}"
target: staging
projectId: zksync-docs
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING_5EB09 }}"
projectId: zksync-docs-staging-5eb09
channelId: live
4 changes: 2 additions & 2 deletions .github/workflows/secrets_scanner.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: secret 🔍
name: scan 🔍
on:
pull_request:
merge_group:
jobs:
scan:
secrets:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
6 changes: 5 additions & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
"line_length": 120,
"tables": false
},
"MD033": false
"MD033": false,
"MD003": false,
"MD034": false,
"MD024": false,
"MD022": false
}
28 changes: 17 additions & 11 deletions content/10.getting-started/1.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,28 @@ There are already many websites based on this template:

You can start playing with this template in your browser using our online sandboxes:

::u-button

class: mr-4 icon: i-simple-icons-stackblitz label: Play on StackBlitz target: \_blank to:
[stackblitz](https://stackblitz.com/github/nuxt-ui-pro/docs/)

::card
---

title: Play on StackBlitz
icon: i-simple-icons-stackblitz
to: https://stackblitz.com/github/nuxt-ui-pro/docs/
target: _blank
---
Explore Nuxt built-in components for pages, layouts, head, and more.
::

::u-button

class: mt-2 sm:mt-0 icon: i-simple-icons-codesandbox label: Play on CodeSandbox target: \_blank to:
[codesandbox](https://codesandbox.io/s/github/nuxt-ui-pro/docs/)

---

::card
---
title: Play on CodeSandbox
icon: i-simple-icons-codesandbox
to: https://codesandbox.io/s/github/nuxt-ui-pro/docs/
target: _blank
---
Explore Nuxt built-in components for pages, layouts, head, and more.
::

---

Or open [Nuxt UI playground](https://ui.nuxt.com/playground).
6 changes: 3 additions & 3 deletions content/10.getting-started/2.installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: Get started with Nuxt UI Pro documentation template.
layout: docs
---

## ::callout

icon: i-heroicons-light-bulb target: \_blank to: [nuxt studio](https://nuxt.studio/themes/docs)
::callout{icon="i-heroicons-light-bulb"}
This is a callout.
::

---

Expand Down
18 changes: 4 additions & 14 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
{
"hosting": [
{
"target": "staging",
"public": ".output/public",
"cleanUrls": true,
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
},
{
"target": "prod",
"public": ".output/public",
"cleanUrls": true,
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
}
]
"hosting": {
"public": ".output/public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
}
}

0 comments on commit 89704df

Please sign in to comment.