Skip to content

Commit eca1591

Browse files
Merge pull request #44 from lammpstutorials/try-workflow
Re-added the GitHub workflow to have access to the pdf from GitHub Action.
2 parents d4a38da + 1d53cb8 commit eca1591

File tree

6 files changed

+59
-30
lines changed

6 files changed

+59
-30
lines changed

.github/workflows/latexmk.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: LaTeX PDF Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Step 1: Checkout the repository
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
# Step 2: Install LaTeX tools and missing packages
21+
- name: Install LaTeX and required packages
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex latexmk
25+
sudo apt-get install -y texlive-fonts-extra texlive-science texlive-pstricks
26+
27+
# Step 3: Install make (required to run your Makefile)
28+
- name: Install make
29+
run: sudo apt-get install make
30+
31+
# Step 4: Build the PDF using the Makefile
32+
- name: Build PDF using Makefile
33+
run: make
34+
35+
# Step 5: Upload the generated PDF as an artifact
36+
- name: Upload PDF artifact
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: lammps-tutorials-pdf
40+
path: lammps-tutorials.pdf

.github/workflows/latexmk_yml

-15
This file was deleted.

DESCRIPTION.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ within the solution repository located in each tutorial folder.
2727

2828
## Link
2929

30-
Access the `.pdf` from [this link](lammps-tutorials.pdf), or clone this repository
31-
and compile the `.tex` file yourself by typing in a terminal:
30+
https://github.com/lammpstutorials/lammpstutorials-article/actions/runs/12458522247/artifacts/2354075042
31+
32+
Access the last version of the `.pdf` from
33+
[the Actions tab](https://github.com/lammpstutorials/lammpstutorials-article/actions/runs/12458522247/artifacts/2354075042),
34+
or clone this repository and compile the `.tex` file yourself by typing in a terminal:
3235

3336
```
3437
make

README.md

+13-10
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ within the solution repository located in each tutorial folder.
3636

3737
## Link
3838

39-
Access the `.pdf` from [this link](lammps-tutorials.pdf), or clone this repository
40-
and compile the `.tex` file yourself by typing in a terminal:
39+
https://github.com/lammpstutorials/lammpstutorials-article/actions/runs/12458522247/artifacts/2354075042
40+
41+
Access the last version of the `.pdf` from
42+
[the Actions tab](https://github.com/lammpstutorials/lammpstutorials-article/actions/runs/12458522247/artifacts/2354075042),
43+
or clone this repository and compile the `.tex` file yourself by typing in a terminal:
4144

4245
```
4346
make
@@ -52,27 +55,27 @@ more useful for everyone.
5255

5356
## License
5457

55-
This project is licensed under the [Creative Commons BY 4.0](https://creativecommons.org/licenses/by/4.0/) License.
56-
For more details, see the [LICENSE](LICENSE) file.
58+
This project is licensed under the XXX License - see the
59+
[LICENSE](LICENSE) file for details.
5760

5861
## Authors
5962

60-
- [Simon Gravelle](https://github.com/simongravelle) (corresponding author),
61-
Univ. Grenoble Alpes, CNRS, LIPhy, 38000 Grenoble, France
63+
- [Simon Gravelle](https://github.com/simongravelle) (corr. author),
64+
Université Grenoble Alpes, CNRS, LIPhy, 38000 Grenoble, France.
6265
- [Jacob R. Gissinger](https://www.stevens.edu/profile/jgissing),
63-
Stevens Institute of Technology, Hoboken, NJ 07030, USA
66+
Stevens Institute of Technology, Hoboken, NJ 07030, USA.
6467
- [Axel Kohlmeyer](https://sites.google.com/site/akohlmey),
6568
Institute for Computational Molecular Science, Temple University, Philadelphia,
66-
PA 19122, USA
69+
PA 19122, USA.
6770

6871

6972

7073
## Acknowledgements
7174

7275
- Simon Gravelle acknowledges funding from the European Union's Horizon 2020
7376
research and innovation programme under the Marie Skłodowska-Curie grant
74-
agreement No 101065060.
75-
- Axel Kohlmeyer acknowledges financial support by Sandia National Laboratories
77+
agreement 101065060.
78+
- Axel Kohlmeyer acknowledges financial support from Sandia National Laboratories
7679
under POs 2149742 and 2407526.
7780

7881

lammps-tutorials.tex

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
\usepackage[title]{appendix}
4040
\usepackage{csquotes}
4141

42-
% \usepackage{inconsolata} % Load a font with no ligatures
43-
4442
\usepackage[
4543
type={CC},
4644
modifier={by-nc-sa},

0 commit comments

Comments
 (0)