-
Notifications
You must be signed in to change notification settings - Fork 0
22 lines (20 loc) · 959 Bytes
/
build-pdf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Build-PDF-from-md
on: [push]
jobs:
Build-PDF-from-md-file:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- run: "sudo apt install texlive-latex-base pandoc texlive-xetex"
- name: Check-out-repository-code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "OUTFILE=$(cd snippets && source genbook.sh)" >> $GITHUB_ENV
id: pdf-file
- name: Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
with:
name: ${{ env.OUTFILE }}.zip
path: snippets/output/${{ env.OUTFILE }}