Skip to content

fix(admin): Fixing admin stylings (#2666) #19

fix(admin): Fixing admin stylings (#2666)

fix(admin): Fixing admin stylings (#2666) #19

Workflow file for this run

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Live Channel
on:
push:
branches:
- main
# Optionally configure to run only for specific files. For example:
paths:
- "src/admin/**"
- "src/docs/**"
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn
# - run: yarn build:admin
- name: Install latest mdbook
run: |
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
mkdir mdbook
curl -sSL $url | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Build Book
run: cd src/book && mdbook build
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_CEZERIN_8FAB8 }}"
# repoToken: "${{ secrets.GITHUB_TOKEN }}"
# projectId: cezerin-8fab8
# channelId: live
# target: admin-f3635
# entryPoint: "./src/admin"
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_CEZERIN_8FAB8 }}"
# repoToken: "${{ secrets.GITHUB_TOKEN }}"
# projectId: cezerin-8fab8
# channelId: live
# entryPoint: "./src/docs"