Skip to content

v0.1.0 release

v0.1.0 release #2

Workflow file for this run

name: Build
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build executable
run: |
pip install pyinstaller
pyinstaller --onefile main.py
mkdir -p build
mv dist/main build/
- name: Upload to build folder
uses: actions/upload-artifact@v3
with:
name: build
path: build/
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: build
path: build/
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: build/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}