-
Notifications
You must be signed in to change notification settings - Fork 4
82 lines (76 loc) · 2 KB
/
Copy pathrelease.yml
File metadata and controls
82 lines (76 loc) · 2 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Release
on:
push:
tags:
- 'v*'
jobs:
build-python:
runs-on: ubuntu-latest
steps:
- 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 build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
build-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build Windows installer
run: |
pip install pyinstaller
pyinstaller --onefile --console --name gemini src/gemini_scanner.py
- name: Upload Windows binary
uses: actions/upload-artifact@v3
with:
name: windows-binary
path: dist/gemini.exe
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build macOS binary
run: |
pip install pyinstaller
pyinstaller --onefile --console --name gemini src/gemini_scanner.py
- name: Upload macOS binary
uses: actions/upload-artifact@v3
with:
name: macos-binary
path: dist/gemini
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Linux binary
run: |
pip install pyinstaller
pyinstaller --onefile --console --name gemini src/gemini_scanner.py
- name: Build Snap package
uses: snapcore/action-build@v1
- name: Upload Linux binary
uses: actions/upload-artifact@v3
with:
name: linux-binary
path: dist/gemini