From cb8f460d0df834f9c1cc2b1bc80dfbd585e053c0 Mon Sep 17 00:00:00 2001 From: token419 Date: Sat, 4 May 2024 03:46:18 -0700 Subject: [PATCH 1/3] Added Github workflow to auto build and release and generate release notes --- .github/release.yml | 15 ++++++++++ .github/workflows/nparse-build.yml | 46 ++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .github/release.yml create mode 100644 .github/workflows/nparse-build.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..f0539d7 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,15 @@ +changelog: + categories: + - title: Features + labels: + - enhancement + - title: Bugfixes / Minor Tweaks + labels: + - bug + - title: Other Changes + labels: + - '*' + exclude: + labels: + - bug + - enhancement \ No newline at end of file diff --git a/.github/workflows/nparse-build.yml b/.github/workflows/nparse-build.yml new file mode 100644 index 0000000..34e8cca --- /dev/null +++ b/.github/workflows/nparse-build.yml @@ -0,0 +1,46 @@ +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python +# https://docs.github.com/en/actions/using-workflows/about-workflows + +name: nParse Build + +on: + push: + tags: + - "*.*.*" + +permissions: + contents: write + +jobs: + build: + # Set the target Platform + runs-on: windows-latest + + steps: + # Checkout the code (See Syntax: https://github.com/actions/checkout) + - uses: actions/checkout@v4 + # Setup Python (See Syntax: https://github.com/actions/setup-python) + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: "3.12" + # Update pip and install requirements + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt pyinstaller + # Build the exe with PyInstaller + - name: Build the application with PyInstaller + run: | + PyInstaller nparse_py.spec + # Prepair assets for packaging + - name: Prepair assets for packaging + run: | + move data dist + Compress-Archive -Path .\dist\* -Destination nparse_${{ github.ref_name }}.zip + # Create Release (See Syntax: https://github.com/softprops/action-gh-release) + - name: Release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: True # This auto generates release notes. (See Syntax: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes) + files: nparse_${{ github.ref_name }}.zip \ No newline at end of file From 77f031c7ed8cf429ddc174bf563f95ef82108774 Mon Sep 17 00:00:00 2001 From: Shaun Davis Date: Tue, 7 May 2024 16:47:27 -0700 Subject: [PATCH 2/3] Fixed spelling mistake --- .github/workflows/nparse-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nparse-build.yml b/.github/workflows/nparse-build.yml index 34e8cca..90a4da0 100644 --- a/.github/workflows/nparse-build.yml +++ b/.github/workflows/nparse-build.yml @@ -33,7 +33,7 @@ jobs: - name: Build the application with PyInstaller run: | PyInstaller nparse_py.spec - # Prepair assets for packaging + # Prepare assets for packaging - name: Prepair assets for packaging run: | move data dist @@ -43,4 +43,4 @@ jobs: uses: softprops/action-gh-release@v2 with: generate_release_notes: True # This auto generates release notes. (See Syntax: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes) - files: nparse_${{ github.ref_name }}.zip \ No newline at end of file + files: nparse_${{ github.ref_name }}.zip From d3d1aed5a3f81a788970ba9cd42543bcc51b7b58 Mon Sep 17 00:00:00 2001 From: Shaun Davis Date: Tue, 7 May 2024 16:48:01 -0700 Subject: [PATCH 3/3] Fixed spelling mistake --- .github/workflows/nparse-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nparse-build.yml b/.github/workflows/nparse-build.yml index 90a4da0..3a51fc6 100644 --- a/.github/workflows/nparse-build.yml +++ b/.github/workflows/nparse-build.yml @@ -34,7 +34,7 @@ jobs: run: | PyInstaller nparse_py.spec # Prepare assets for packaging - - name: Prepair assets for packaging + - name: Prepare assets for packaging run: | move data dist Compress-Archive -Path .\dist\* -Destination nparse_${{ github.ref_name }}.zip