Skip to content

Electronic Throttle Body Details (#290) #152

Electronic Throttle Body Details (#290)

Electronic Throttle Body Details (#290) #152

Workflow file for this run

# 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"