From baa8e9dbdd86577f9133436543ca3b7e79bda05d Mon Sep 17 00:00:00 2001 From: "Henrique C. S. Junior" <574402+HenriqueCSJ@users.noreply.github.com> Date: Tue, 7 Nov 2023 08:50:23 -0300 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..322a360 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build and Release + +on: + push: + branches: + - main # or the name of your default branch + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: '3.11' # Specify Python 3.11 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pandas scipy matplotlib numpy pyinstaller + + - name: Build Executable with PyInstaller + run: pyinstaller --onefile --windowed ORCASpectrumPlot.py + + - name: Upload Executable Artifact + uses: actions/upload-artifact@v2 + with: + name: ORCASpectrumPlot-Windows + path: dist/ORCASpectrumPlot.exe