Skip to content

Publish on PyPi and Build binary #6

Publish on PyPi and Build binary

Publish on PyPi and Build binary #6

Workflow file for this run

name: Publish on PyPi and Build binary
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
publish:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python3 -m pip install -U pip setuptools wheel twine
pip3 install .
- name: Building
run: make build
- name: Publishing
run: "python3 -m twine upload dist/* -u __token__ -p '${{ secrets.PYPI_TOKEN }}'"
build_bin:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python3 -m pip install -U pip setuptools wheel twine
pip3 install .
- name: Create Executable
uses: sayyid5416/pyinstaller@v1
with:
python_ver: '3.8'
spec: 'rofi-notion.spec'
upload_exe_with_name: 'rofi-notion'
options: --onefile, --name "rofi-notion", --console,