This repository has been archived by the owner on Jul 21, 2024. It is now read-only.
feat: generate device within the app and attempt to fix disconnects w… #6
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- v* | |
env: | |
FORCE_COLOR: true | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest pyinstaller | |
if (Test-Path requirements.txt) { | |
pip install -r requirements.txt | |
} | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build Executable | |
run: pyinstaller --add-data "Libs:Libs" --onefile --clean TiktokStreamKeyGenerator.py | |
- name: Clean up obsolete files | |
run: Remove-Item -Path build, TiktokStreamKeyGenerator.spec -Recurse -Force | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows | |
path: | | |
dist/TiktokStreamKeyGenerator.exe | |
release: | |
runs-on: windows-latest | |
needs: [build] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
- name: Create the release | |
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: ${{ github.ref_name }} | |
prerelease: false | |
draft: false | |
files: | | |
windows/TiktokStreamKeyGenerator.exe |