Skip to content

Commit 9d1a6db

Browse files
committed
Don't upload artifacts when release
it takes ages to complete and it useless Also, use LF endings when creating PKGBUILD. Signed-off-by: Naveen M K <naveen@syrusdark.website>
1 parent 669b273 commit 9d1a6db

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
python -m texlive build ${{ matrix.package }} $PWD\build
8888
8989
- uses: actions/upload-artifact@v2
90+
if: ${{ github.event_name != 'release' }}
9091
with:
9192
path: build/*
9293
name: build-assets-${{ matrix.package }}

texlive/file_creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,6 @@ def create_linked_scripts(
465465
final_file += script.group("script") + "\n"
466466
break
467467
final_file += '"'
468-
with filename_save.open("w", encoding="utf-8", newline='\n') as f:
468+
with filename_save.open("w", encoding="utf-8", newline="\n") as f:
469469
f.write(final_file)
470470
logger.info("Wrote %s", filename_save)

texlive/pkgbuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def make_pkgbuild_for_texlive_bin(
211211
pkgbuild_location = repo_path / "mingw-w64-texlive-bin" / "PKGBUILD"
212212
if not pkgbuild_location.exists():
213213
pkgbuild_location.parent.mkdir()
214-
with pkgbuild_location.open("w", encoding="utf-8") as f:
214+
with pkgbuild_location.open("w", encoding="utf-8", newline="\n") as f:
215215
f.write(final_result)
216216
logger.info("Writtern PKGBUILD for texlive-bin")
217217

@@ -273,5 +273,5 @@ def main(repo_path: Path, texlive_bin: bool = False, commit_version: str = None)
273273
pkgbuild_location = repo_path / f"mingw-w64-{pkg}" / "PKGBUILD"
274274
if not pkgbuild_location.exists():
275275
pkgbuild_location.parent.mkdir()
276-
with pkgbuild_location.open("w", encoding="utf-8") as f:
276+
with pkgbuild_location.open("w", encoding="utf-8", newline="\n") as f:
277277
f.write(final_result)

0 commit comments

Comments
 (0)