Skip to content

Update ym to trig a build on develop #9

Update ym to trig a build on develop

Update ym to trig a build on develop #9

Workflow file for this run

name: Create Release
on:
push:
branches:
- develop
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build executable
run: pyinstaller --onefile --windowed main.py
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release v${{ github.run_number }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/main.exe
asset_name: main.exe
asset_content_type: application/octet-stream