Skip to content

fix

fix #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
platform: linux
asset_name: simpletree-linux
- os: windows-latest
platform: windows
asset_name: simpletree-windows.exe
- os: macos-latest
platform: macos
asset_name: simpletree-macos
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Build binary
run: pyinstaller --onefile simpletree.py --name ${{ matrix.asset_name }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.asset_name }}
path: dist/${{ matrix.asset_name }}*
create_release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
simpletree-linux/*
simpletree-windows.exe/*
simpletree-macos/*
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}