Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Docs Deploy Preview
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "docs/**"
|
|
|
|
jobs:
|
|
build_and_deploy:
|
|
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Cache node_modules
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: docs/node_modules
|
|
key: node_modules-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: yarn
|
|
cache-dependency-path: docs/yarn.lock
|
|
|
|
- name: Install Dependencies
|
|
run: yarn install
|
|
working-directory: ./docs
|
|
|
|
- name: Build
|
|
run: yarn run build
|
|
working-directory: ./docs
|
|
|
|
- name: Deploy
|
|
uses: FirebaseExtended/action-hosting-deploy@v0
|
|
with:
|
|
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
|
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNTSERVICES }}"
|
|
expires: 7d
|
|
target: docs.ignite.com
|
|
projectId: igntservices
|
|
firebaseToolsVersion: v11.12.0
|