Skip to content

Fix pdf generation size #77

Fix pdf generation size

Fix pdf generation size #77

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-2022
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
# Set always-auth in npmrc
always-auth: true
# Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0
node-version: 20.12.2
- name: Prepare git
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Install dependencies
run: npm ci
# Runs a set of commands using the runners shell
- name: Build
run: npm run build:ci
- name: Create pdf
run: |
npm run pdf-sequence:ci
cp *.pdf ./public
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public