Skip to content

Commit

Permalink
Don't upload artifacts when release
Browse files Browse the repository at this point in the history
it takes ages to complete and it useless

Also, use LF endings when creating PKGBUILD.

Signed-off-by: Naveen M K <naveen@syrusdark.website>
  • Loading branch information
naveen521kk committed May 6, 2021
1 parent 669b273 commit 9d1a6db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
python -m texlive build ${{ matrix.package }} $PWD\build
- uses: actions/upload-artifact@v2
if: ${{ github.event_name != 'release' }}
with:
path: build/*
name: build-assets-${{ matrix.package }}
Expand Down
2 changes: 1 addition & 1 deletion texlive/file_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,6 @@ def create_linked_scripts(
final_file += script.group("script") + "\n"
break
final_file += '"'
with filename_save.open("w", encoding="utf-8", newline='\n') as f:
with filename_save.open("w", encoding="utf-8", newline="\n") as f:
f.write(final_file)
logger.info("Wrote %s", filename_save)
4 changes: 2 additions & 2 deletions texlive/pkgbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def make_pkgbuild_for_texlive_bin(
pkgbuild_location = repo_path / "mingw-w64-texlive-bin" / "PKGBUILD"
if not pkgbuild_location.exists():
pkgbuild_location.parent.mkdir()
with pkgbuild_location.open("w", encoding="utf-8") as f:
with pkgbuild_location.open("w", encoding="utf-8", newline="\n") as f:
f.write(final_result)
logger.info("Writtern PKGBUILD for texlive-bin")

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

0 comments on commit 9d1a6db

Please sign in to comment.