From dfd7a7adf6b50a24088fce441141dc3ed0c55633 Mon Sep 17 00:00:00 2001 From: andatoshiki <101481353+andatoshiki@users.noreply.github.com> Date: Fri, 24 Mar 2023 16:25:49 +0800 Subject: [PATCH] chore: remove some emojis from workflow config and add steps to prep build --- .github/workflows/algolia.yml | 6 +++--- .github/workflows/deploy.yml | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/algolia.yml b/.github/workflows/algolia.yml index 6a452502..5bbc4f03 100644 --- a/.github/workflows/algolia.yml +++ b/.github/workflows/algolia.yml @@ -1,4 +1,4 @@ -name: ❤️ Generate Algolia serach indicies in JSON & push to Algolia +name: Generate Algolia serach indicies in JSON & push to Algolia on: push: branches: @@ -8,10 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: 🐳 Generate the content of algolia.json as config + - name: Generate the content of algolia.json as config id: algolia_config run: echo "config=$(cat ./crawler-config.json | jq -r tostring)" >> $GITHUB_OUTPUT # crawl off the index content from site - - name: 🥙 Push indices to Algolia + - name: Push indices to Algolia uses: signcl/docsearch-scraper-action@master env: APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7f0a3c12..45024210 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: ✅ Build and Deploy Vitepress Doc Pages to GitHub Pages +name: Build and Deploy Vitepress Doc Pages to GitHub Pages on: push: branches: @@ -11,12 +11,13 @@ jobs: - name: Perform check out uses: actions/checkout@v3 - - name: ⚒️ Install dependencies and build/compile the site # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + - name: Install dependencies and build/compile the site # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. run: | yarn install --frozen-lockfile + yarn prepare yarn lint yarn docs:build - - name: 🪗 Deploy to GitHub pages + - name: Deploy to GitHub pages uses: JamesIves/github-pages-deploy-action@v4 with: folder: dist # The folder the action should deploy.