Bump @easyops-cn/docusaurus-search-local from 0.38.1 to 0.39.0 (#208) #113
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
# Deploy to Cloudflare Pages | |
name: Deploy | |
concurrency: | |
group: ${{ github.ref }}-deploy | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [master] | |
env: | |
PRINCE_VER: 15.1 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'FOME-Tech' | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "npm" | |
- name: Install PrinceXML | |
run: | | |
curl https://www.princexml.com/download/prince-${{ env.PRINCE_VER }}-linux-generic-x86_64.tar.gz -O | |
tar zxf prince-${{ env.PRINCE_VER }}-linux-generic-x86_64.tar.gz | |
cd prince-${{ env.PRINCE_VER }}-linux-generic-x86_64 | |
yes "" | sudo ./install.sh | |
- name: Install Node.js dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Generate PDF | |
run: | | |
npm run serve & | |
sleep 5 | |
npm run pdf | |
- name: Check for generated PDF | |
run: ls -lah static/pdf/wiki.fome.pdf | |
- name: Rebuild with PDF | |
run: npm run build | |
- name: Check for bundled PDF | |
run: ls -lah build/pdf/wiki.fome.pdf | |
- name: Deploy to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: wiki | |
directory: build | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} # GitHub Deployments | |
branch: master | |
wranglerVersion: "3" |