Skip to content

Commit

Permalink
Merge pull request #2 from eleanorLYJ/relase-pdf-workflow
Browse files Browse the repository at this point in the history
Add workflow for generating PDFs
  • Loading branch information
jserv authored Apr 4, 2024
2 parents d26ef59 + 86fb930 commit eb20245
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 eb20245

Please sign in to comment.