Verbose now prints Exception messages #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
push: | |
tags: | |
- 'v[0-9]+\.[0-9]+\.[0-9]+' | |
jobs: | |
build-and-release: | |
permissions: write-all | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure Python3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: Install pyinstaller | |
run: pip install pyinstaller && pip install -r requirements.txt | |
- name: Bootstrap venv | |
run: script/init.sh && source script/env-up.sh | |
- name: Build latest release | |
run: pyinstaller --onefile --paths unminipy-env/lib/python3.11/site-packages --hidden-import pyperclip -n unminipy unmini.py | |
- name: Prep artifact | |
run: chmod 777 dist/unminipy && cd dist && zip unminipy.zip unminipy && cd - | |
- name: Test artifact | |
run: dist/unminipy --clip | |
- name: Release | |
uses: ncipollo/release-action@v1.13.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
allowUpdates: false | |
artifacts: "dist/unminipy.zip" | |
bodyFile: releases.md | |
draft: false | |
makeLatest: true | |
name: Release ${{ github.ref_name }} | |
prerelease: false | |
replacesArtifacts: true | |
skipIfReleaseExists: true | |
tag: ${{ github.ref_name }} | |