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

Update README.md with support for specifying different topics #10

Update README.md with support for specifying different topics

Update README.md with support for specifying different topics #10

Workflow file for this run

name: build
on:
push:
branches:
- main
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: Get some values needed for the release
id: release_values
run: |
echo "release_tag=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Upload DevBuild as release
if: github.repository == 'Loukious/TikTokStreamKeyGenerator'
run: |
$files = Get-ChildItem -Path dist\* -Name
foreach ($file in $files) {
gh release upload devbuild --clobber "dist/$file"
}
gh release edit devbuild --title "DevBuild ${{ env.RELEASE_TAG }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ env.release_tag }}