From 201b8574f7c8adef09f5c4017c8b85648878927e Mon Sep 17 00:00:00 2001 From: douglascdev Date: Tue, 10 Oct 2023 13:07:27 -0300 Subject: [PATCH] Update pyinstaller --- .github/workflows/pyinstaller-builds.yaml | 41 ----------------------- .github/workflows/release-linux.yaml | 38 +++++++++++++++++++++ 2 files changed, 38 insertions(+), 41 deletions(-) delete mode 100644 .github/workflows/pyinstaller-builds.yaml create mode 100644 .github/workflows/release-linux.yaml diff --git a/.github/workflows/pyinstaller-builds.yaml b/.github/workflows/pyinstaller-builds.yaml deleted file mode 100644 index 6c85ff2..0000000 --- a/.github/workflows/pyinstaller-builds.yaml +++ /dev/null @@ -1,41 +0,0 @@ - -name: Package Application with Pyinstaller - -on: - push: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - - name: Install requirements - run: >- - python3 -m pip install .[dev] --user - - - name: Package application for Linux - run: >- - cd hasherino && flet pack hasherino.py --add-data UserAuth.html:UserAuth.html - - - uses: actions/upload-artifact@v2 - with: - name: name-of-artifact - path: hasherino/dist/hasherino - - - name: Package Application for Windows - uses: JackMcKew/pyinstaller-action-windows@main - with: - path: hasherino - - uses: actions/upload-artifact@v2 - with: - name: name-of-artifact - path: hasherino/dist/windows diff --git a/.github/workflows/release-linux.yaml b/.github/workflows/release-linux.yaml new file mode 100644 index 0000000..c920c40 --- /dev/null +++ b/.github/workflows/release-linux.yaml @@ -0,0 +1,38 @@ + +name: Release for Linux + +on: + push: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install requirements + run: >- + python3 -m pip install .[dev] --user + + - name: Package application + run: >- + cd hasherino && flet pack hasherino.py --add-data UserAuth.html:UserAuth.html + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + files: | + hasherino/dist/hasherino + + +