diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ab26a4..41cc6e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/texlive/file_creator.py b/texlive/file_creator.py index ae0d7c1..77455a2 100644 --- a/texlive/file_creator.py +++ b/texlive/file_creator.py @@ -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) diff --git a/texlive/pkgbuilder.py b/texlive/pkgbuilder.py index 5efb8dd..5ba512d 100644 --- a/texlive/pkgbuilder.py +++ b/texlive/pkgbuilder.py @@ -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") @@ -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)