Skip to content

Update README.md

Update README.md #3

name: Build and Release
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11.6
uses: actions/setup-python@v2
with:
python-version: 3.11.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build with pyinstaller
run: |
pyinstaller main.py --noconfirm --onedir --console --icon icon_windows.ico --name "XLauncher"
- name: Compress folder
shell: powershell
run: |
Compress-Archive -Path dist/XLauncher -DestinationPath XLauncher.zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag_name: v1.0.0
release_name: XLauncher v1.0.0
body: |
This is the first release.
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./XLauncher.zip
asset_name: XLauncher.zip
asset_content_type: application/zip