Skip to content

Commit 88fd1ac

Browse files
committed
fix: introduced skipping producing a zip file
1 parent ceb081b commit 88fd1ac

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828

2929
- name: LaTeX compile
3030
run: |
31-
./render --master-tex Snakemake_HPC_Users.tex --configfile config/config_for_github.yaml --handout --sample-directory=.;
32-
./render --master-tex Snakemake_HPC_Creators.tex --configfile config/config_for_github.yaml --handout --sample-directory=.;
33-
./render --master-tex Snakemake_HPC_User_Creator_Combi.tex --configfile config/config_for_github.yaml --handout --sample-directory=.;
34-
./render --master-tex Snakemake_HPC_Admins.tex --configfile config/config_for_github.yaml --handout --sample-directory=.;
31+
./render --master-tex Snakemake_HPC_Users.tex --configfile config/config_for_github.yaml --handout --sample-directory=_;
32+
./render --master-tex Snakemake_HPC_Creators.tex --configfile config/config_for_github.yaml --handout --sample-directory=_;
33+
./render --master-tex Snakemake_HPC_User_Creator_Combi.tex --configfile config/config_for_github.yaml --handout --sample_directory=_;
34+
./render --master-tex Snakemake_HPC_Admins.tex --configfile config/config_for_github.yaml --handout --sample-directory=_;
3535
3636
- name: Certificate compile
3737
run: |

render

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,9 @@ if __name__ == "__main__":
236236
"--sample-directory",
237237
help="needed with `--handout` - should indicate directory with script files (cloze and solution)",
238238
)
239-
parser.add_argument(
240-
"--no-packaging",
241-
help="needed for the CI, which should not attempt to package slides",
242-
default=False,
243-
action=argparse.BooleanOptionalAction,
244-
)
245239
args = parser.parse_args()
246240

247-
if args.handout and (not args.sample_directory or not args.no_packaging):
241+
if args.handout and not args.sample_directory:
248242
print(
249243
"ERROR: must indicate --sample-directory when writing handouts",
250244
file=sys.stderr,
@@ -342,7 +336,7 @@ if __name__ == "__main__":
342336
]
343337
opj = os.path.join
344338

345-
if args.no_packaging:
339+
if args.sample_directory == "_": # will skip producing a zip file
346340
sys.exit(0)
347341

348342
for root, dirs, files in os.walk(args.sample_directory):

0 commit comments

Comments
 (0)