diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c196bf5 --- /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 + - 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