Skip to content

Fix for Cabin Prices #42

Fix for Cabin Prices

Fix for Cabin Prices #42

name: Build Windows Executable with PyInstaller
on:
release:
types: [published]
jobs:
build:
runs-on: windows-2022
permissions:
contents: write # Grants write access to repository contents for this job only
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12' # Specify your desired Python version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller requests
# If you have a requirements.txt file:
# Install requirements later, as may make binary smaller
#pip install -r requirements.txt
# Do this first, as has less dependencies
- name: Package BrowseApplication with PyInstaller
run: |
# Replace 'your_script.py' with your main Python script or 'your_app.spec' if using a spec file
pyinstaller -F BrowseRoyalCaribbeanPrice.py
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: D:\a\CheckRoyalCaribbeanPrice\CheckRoyalCaribbeanPrice\dist\BrowseRoyalCaribbeanPrice.exe
asset_name: BrowseRoyalCaribbeanPrice.exe
asset_content_type: application/exe
- name: Package Application with PyInstaller
run: |
# Replace 'your_script.py' with your main Python script or 'your_app.spec' if using a spec file
pip install PyYAML Apprise curl_cffi
pyinstaller -F --collect-all apprise CheckRoyalCaribbeanPrice.py
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: D:\a\CheckRoyalCaribbeanPrice\CheckRoyalCaribbeanPrice\dist\CheckRoyalCaribbeanPrice.exe
asset_name: CheckRoyalCaribbeanPrice.exe
asset_content_type: application/exe