Skip to content

Merge branch 'main' of https://github.com/zachey01/SmoothedScroll #18

Merge branch 'main' of https://github.com/zachey01/SmoothedScroll

Merge branch 'main' of https://github.com/zachey01/SmoothedScroll #18

Workflow file for this run

name: Build and Release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12.5"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build with Nuitka
run: |
echo 'yes' | python -m nuitka --onefile main.py --enable-plugin=tk-inter --jobs=12 --remove-output --standalone --windows-icon-from-ico=./assets/icon.ico --output-filename=SmoothedScroll --include-data-dir=./assets=./assets --include-plugin-files="assets/*" --windows-disable-console
- name: Configure Git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: v1.0.${{ github.run_number }}
release_name: "Release v1.0.${{ github.run_number }}"
body: "Automatic release v1.0.${{ github.run_number }}"
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./SmoothedScroll.exe
asset_name: SmoothedScroll.exe
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}