From 5fb7499117d660c293fe1a416139f0debfbed192 Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: Mon, 22 Jul 2024 19:15:37 +0530 Subject: [PATCH] Attempt fixing the GitHub Actions configuration Signed-off-by: Akashdeep Dhar --- .github/workflows/main.yml | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 531a7d4..ffbd647 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,30 +1,29 @@ --- -name: "expedite" -on: ["push"] +name: expedite +on: [push] jobs: ci-build: - runs-on: "windows-latest" + runs-on: windows-latest strategy: fail-fast: false - steps: - - name: "Checkout the codebase to a local working directory" - uses: "actions/checkout@v4" + - uses: actions/checkout@v4 - - name: "Setup a functioning local Python 3 installation" - uses: "actions/setup-python@v5" + - name: Setup a functioning local Python 3 installation + uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: 3.12 - - name: "Install the base dependencies" - run: "python3 -m pip3 install --upgrade poetry pyinstaller" + - name: Install the base dependencies of the project + run: python3 -m pip3 install --upgrade poetry pyinstaller - - name: "Install the project dependencies" - run: "python3 -m poetry install" + - name: Install the runtime dependencies of the project + run: python3 -m poetry install - - name: "Build the project binary" - run: "python3 -m pyinstaller expedite\client\bridge\main.py --clean --onefile --name 'ed-bridge-${{ github.sha }}' --windowed --icon assets\icon\expedite.ico" + - name: Build the project binary for Microsoft Windows + run: python3 -m pyinstaller expedite/client/bridge/main.py --clean --onefile --name "ed-bridge-${{ github.sha }}" --windowed --icon assets/icon/expedite.ico - - uses: "actions/upload-artifact@v4" + - name: Make the project binaries available for download + uses: actions/upload-artifact@v4 with: - path: "dist/*" + path: dist/*