Skip to content

Commit

Permalink
Update pdf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhimin-z authored Jul 15, 2024
1 parent 125714c commit 01d8406
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ on:
push:
branches:
- main
pull_request:
types:
- closed
branches:
- main
workflow_dispatch: {}

jobs:
converttopdf:
name: build-release-pdf
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- id: today
run: echo "name=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
Expand All @@ -19,7 +25,7 @@ jobs:

# Install pandoc and xelatex
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y pandoc texlive-xetex
run: sudo apt-get install -y pandoc texlive-xetex

# Create directory for PDFs
- name: Create PDF directory
Expand Down

0 comments on commit 01d8406

Please sign in to comment.