From 4b19425f5cc0a726b6a5de1185c307b284a9adb9 Mon Sep 17 00:00:00 2001 From: siberianlove Date: Sun, 17 Mar 2024 20:49:35 +0500 Subject: [PATCH] #12 provide single executable --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ easy_changelog.py | 2 +- requirements.txt | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml create mode 100644 requirements.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..448afda --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +on: + push: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ['windows-latest', 'ubuntu-latest', 'macos-latest'] + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - run: pip install -r requirements.txt pyinstaller + - run: pyinstaller --onefile easy_changelog.py + - run: ./dist/easy_changelog -h + - uses: actions/upload-artifact@v2 + with: + path: dist/* \ No newline at end of file diff --git a/easy_changelog.py b/easy_changelog.py index b3ea197..a786daf 100644 --- a/easy_changelog.py +++ b/easy_changelog.py @@ -619,4 +619,4 @@ def find_version_container_changes( ) with open(args.output_file, "w") as f: - f.write(changelog) + f.write(changelog) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..75aa6c0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +packaging \ No newline at end of file