1.0.1 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-Windows.zip | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
with: | |
tag_name: v1.0.1 | |
release_name: XLauncher v1.0.1 | |
body: | | |
- Agregado indicador de por donde va la descarga. | |
- Agregada la opcion de instalar Fabric | |
- Proximamente login con cuenta Premium | |
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-Windows.zip | |
asset_name: XLauncher-Windows.zip | |
asset_content_type: application/zip |