-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (40 loc) · 1.1 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
48
name: Publish
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
strategy:
matrix:
libfranka-version: [0.5.0, 0.7.1, 0.8.0, 0.9.2, 0.10.0, 0.11.0, 0.12.1, 0.13.3, 0.14.2, 0.15.0]
uses: ./.github/workflows/build_wheels.yml
with:
libfranka-version: ${{ matrix.libfranka-version }}
publish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Prepare
run: |
mkdir -p artifacts
- name: Get wheels
uses: actions/download-artifact@v4
with:
path: artifacts/
merge-multiple: true
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: false
files: |
artifacts/libfranka_*_wheels.zip
- name: Unpack wheels
run: |
unzip artifacts/libfranka_0-15-0_wheels.zip
- name: Publish python package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}