Skip to content

Commit

Permalink
ci: add GitHub actions (#2)
Browse files Browse the repository at this point in the history
* Add some new images

* Remove RunReportTool bin and src

* add github action to package exe
  • Loading branch information
SivWatt authored Apr 14, 2021
1 parent 4667eb7 commit 7720ac2
Show file tree
Hide file tree
Showing 14 changed files with 117 additions and 606 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/BuildExecutable.yaml
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
Loading

0 comments on commit 7720ac2

Please sign in to comment.