forked from Keeper-Security/Commander
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 893 Bytes
/
build-wheel.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
name: Build Commander
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Commander
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Build Commander
run: |
pip install wheel
pip install build
python3 -m build --wheel
shell: bash
- name: Archive Commander
run: |
COMMANDER_VERSION=`python3 -c "import keepercommander.__init__ as init; print(init.__version__);"`
echo "COMMANDER_VERSION=$COMMANDER_VERSION" >> $GITHUB_ENV
shell: bash
- uses: actions/upload-artifact@v4
with:
name: KeeperCommanderWheel
retention-days: 3
path: dist/keepercommander-${{ env.COMMANDER_VERSION }}-py3-none-any.whl
if-no-files-found: error