-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.23 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
id: create_exec
uses: sayyid5416/pyinstaller@v1
with:
python_ver: '3.10'
spec: 'rofi-notion.spec'
upload_exe_with_name: 'rofi-notion'
- name: Set artifact to release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ steps.create_exec.outputs.executable_path }}