-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.45 KB
/
pyinstaller.yml
File metadata and controls
49 lines (49 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: BuildInstallCoopsPyinstaller
on:
workflow_dispatch:
inputs:
tagname:
description: 'Tag'
required: true
default: ''
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: build with pyinstaller
run: |
python -m PyInstaller --onefile --noconsole --uac-admin --icon icon.ico install_coops_python.py
- uses: actions/upload-artifact@v2
with:
name: python-menu.exe
path: dist\install_coops_python.exe
- name: release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: false
tag_name: ${{ github.event.inputs.tagname }}
release_name: ${{ github.event.inputs.tagename }}
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist\install_coops_python.exe
asset_name: install_coops_python.exe
asset_content_type: application/exe