Skip to content

Commit eb20245

Browse files
authoredApr 4, 2024
Merge pull request #2 from eleanorLYJ/relase-pdf-workflow
Add workflow for generating PDFs
2 parents d26ef59 + 86fb930 commit eb20245

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
 

‎.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: generate-pdf-actions
2+
on: [push]
3+
jobs:
4+
concurrency-primer:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
continue-on-error: true
9+
- name: install-texlive
10+
run: |
11+
sudo apt-get install -q -y texlive-full texlive-latex-base
12+
shell: bash
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.10'
16+
- name: install-pygments
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install pygments
20+
- name: make
21+
run: make
22+
- name: create Release
23+
id: create_Release
24+
uses: actions/create-release@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
tag_name: ${{ github.ref_name }}
29+
release_name: Release ${{ github.ref_name }}
30+
body: |
31+
Changes in this Release
32+
- name: Upload Release Asset
33+
id: upload-release-asset
34+
uses: actions/upload-release-asset@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
upload_url: ${{ steps.create_release.outputs.upload_url }}
39+
asset_path: ./concurrency-primer.pdf
40+
asset_name: concurrency-primer.pdf
41+
asset_content_type: application/pdf
42+

0 commit comments

Comments
 (0)