Skip to content

Commit

Permalink
#12 provide single executable
Browse files Browse the repository at this point in the history
  • Loading branch information
siberianlove committed Mar 17, 2024
1 parent 0adc719 commit 78a9d13
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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/easy_changelog
- uses: actions/upload-artifact@v2
with:
path: dist/*
2 changes: 1 addition & 1 deletion easy_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,4 +619,4 @@ def find_version_container_changes(
)

with open(args.output_file, "w") as f:
f.write(changelog)
f.write(changelog)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packaging

0 comments on commit 78a9d13

Please sign in to comment.