Skip to content

Commit

Permalink
Add workflow for generating PDFs
Browse files Browse the repository at this point in the history
The workflow generates PDFs using LaTeX with texlive-base, pygments and
other dependency.It creates a release on push events, uploading
concurrency-primer.pdf as a release for easy accessibility.
  • Loading branch information
eleanorLYJ committed Apr 4, 2024
1 parent d26ef59 commit 86fb930
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: generate-pdf-actions
on: [push]
jobs:
concurrency-primer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
continue-on-error: true
- name: install-texlive
run: |
sudo apt-get install -q -y texlive-full texlive-latex-base
shell: bash
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install-pygments
run: |
python -m pip install --upgrade pip
pip install pygments
- name: make
run: make
- name: create Release
id: create_Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: |
Changes in this Release
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./concurrency-primer.pdf
asset_name: concurrency-primer.pdf
asset_content_type: application/pdf

0 comments on commit 86fb930

Please sign in to comment.