Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Fixed workflow finding .exe #2

Fixed workflow finding .exe

Fixed workflow finding .exe #2

Workflow file for this run

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 --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