-
Notifications
You must be signed in to change notification settings - Fork 401
55 lines (46 loc) · 1.2 KB
/
build_wheels.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
48
49
50
51
52
53
54
55
name: Build wheels
on:
# push:
# branches:
# - develop
# - wheel
# tags:
# - "*"
workflow_dispatch:
inputs:
ref:
description: 'The branch, tag, or SHA for which to run (eg: v22.1.0 or develop)'
required: true
jobs:
build_wheel:
name: Build Python Wheels
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
os: [ubuntu-22.04] # , macos-13, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout EnergyPlus
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: build wheels
run: |
pip install wheel
python setup.py bdist_wheel
- uses: actions/upload-artifact@v4
with:
name: energyplus-wheel-${{ matrix.os }}
path: ./dist
- name: Deploy on Test PyPi
uses: pypa/[email protected]
with:
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.TESTPYPIPW }}
verbose: true