feat: add multi author option to tutorials #4
Workflow file for this run
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: "preview builder 👀" | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build_and_preview: | |
env: | |
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }} | |
NUXT_PUBLIC_SITE_URL: ${{ secrets.NUXT_PUBLIC_SITE_URL }} | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository }} | |
runs-on: ubuntu-latest | |
outputs: | |
output_urls: "${{ steps.preview_deploy.outputs.urls }}" | |
steps: | |
- uses: actions/checkout@v4 # v4 | |
- uses: oven-sh/setup-bun@v1 | |
- name: "Install dependencies" | |
run: bun install | |
- name: "Deploy target: preview" | |
run: bun run generate | |
- uses: untitaker/hyperlink@0.1.32 | |
with: | |
args: .output/public/ --sources content/ | |
- name: "Deploy preview" | |
uses: matter-labs/action-hosting-deploy@main | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COMMUNITY_COOKBOOK_STAGING }}" | |
projectId: community-cookbook-staging |