mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 02:46:30 +00:00
chore: remove some emojis from workflow config and add steps to prep build
This commit is contained in:
parent
207f916a5b
commit
dfd7a7adf6
6
.github/workflows/algolia.yml
vendored
6
.github/workflows/algolia.yml
vendored
@ -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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -8,10 +8,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
id: algolia_config
|
||||||
run: echo "config=$(cat ./crawler-config.json | jq -r tostring)" >> $GITHUB_OUTPUT # crawl off the index content from site
|
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
|
uses: signcl/docsearch-scraper-action@master
|
||||||
env:
|
env:
|
||||||
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
||||||
|
|||||||
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@ -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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -11,12 +11,13 @@ jobs:
|
|||||||
- name: Perform check out
|
- name: Perform check out
|
||||||
uses: actions/checkout@v3
|
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: |
|
run: |
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
|
yarn prepare
|
||||||
yarn lint
|
yarn lint
|
||||||
yarn docs:build
|
yarn docs:build
|
||||||
- name: 🪗 Deploy to GitHub pages
|
- name: Deploy to GitHub pages
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
with:
|
with:
|
||||||
folder: dist # The folder the action should deploy.
|
folder: dist # The folder the action should deploy.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user