-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add some new images * Remove RunReportTool bin and src * add github action to package exe
- Loading branch information
Showing
14 changed files
with
117 additions
and
606 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v*' # Push events to matching v*, i.i. v1.0, v20.15.10 | ||
|
||
name: Release Package With Version | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyinstaller | ||
pip install opencv-python | ||
pip install pyautogui | ||
pip install pyperclip | ||
pip install pywin32 | ||
- name: Build with pyinstaller | ||
run: | | ||
pyinstaller -F -w League.py | ||
- name: Compress release package | ||
run: | | ||
7z a -tzip LOL_report_tool.zip '@7zip_list_file.txt' | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
id: 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: LOL_report_tool.zip | ||
asset_name: LOL_report_tool.zip | ||
asset_content_type: application/zip | ||
|
||
# - name: Upload artifacts | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: LOL_report_tool.zip | ||
# path: LOL_report_tool.zip | ||
# retention-days: 7 | ||
|
||
# TODO: pack the exe and images in a zip and release it | ||
|
||
# Install dep via requirements.txt | ||
# pip install -r requirements.txt |
Oops, something went wrong.