Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownpersonog authored Jul 9, 2024
1 parent 554a437 commit f51fd60
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
build-and-release-linux:
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -53,8 +55,10 @@ jobs:
body: |
### 🚀 Release Details
This release includes compiled executables for both Linux and Windows platforms.
**General Overview:**
- 🛠️ Enhancements to improve performance and stability.
**Note:** This build includes both Linux and Windows executables.
- name: Upload Linux Release Asset
Expand All @@ -73,12 +77,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -89,17 +93,17 @@ jobs:
pip install google-api-python-client
pip install requests
# Add any other dependencies your project needs
- name: Build with PyInstaller
run: |
pyinstaller --onefile main.py
- name: Upload Windows Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ needs.build-and-release-linux.outputs.create_release.upload_url }}
upload_url: ${{ needs.build-and-release-linux.outputs.upload_url }}
asset_path: ./dist/main.exe
asset_name: main_windows.exe
asset_content_type: application/octet-stream

0 comments on commit f51fd60

Please sign in to comment.