-
Notifications
You must be signed in to change notification settings - Fork 51
45 lines (36 loc) · 1001 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
35
36
37
38
39
40
41
42
43
44
45
name: pomdp-py build dev-latest wheel
on:
push:
tags:
- 'vdev-latest' # trigger on the tag vdev-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Set release name with date
id: set_release_name
run: echo "RELEASE_NAME=pomdp-py (dev-latest $(date +'%Y-%m-%d'))" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
ref: 'dev-latest'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Run release script
working-directory: .
run: |
cd scripts
./pomdp_py_release.sh
- name: Release artifact
uses: softprops/action-gh-release@v1
with:
name: ${{ env.RELEASE_NAME }}
files: dist/*.whl