-
-
Notifications
You must be signed in to change notification settings - Fork 674
45 lines (41 loc) · 1.17 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
name: Upload Python Package
on:
release:
types: published
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# This permission is required for trusted publishing.
id-token: write
strategy:
# One element of this matrix failing should not terminate the others mid-run.
# This prevents one bad platform from stalling the publication of others.
fail-fast: false
matrix:
package:
- "toga"
- "toga_android"
- "toga_cocoa"
- "toga_core"
- "toga_demo"
- "toga_dummy"
- "toga_gtk"
- "toga_textual"
- "toga_iOS"
- "toga_web"
- "toga_winforms"
steps:
- name: Get packages
uses: dsaltares/[email protected]
with:
version: tags/${{ github.event.release.tag_name }}
file: ${{ github.event.repository.name }}.*
regex: true
target: packages/
- name: Extract ${{ matrix.package }}
run: |
mkdir dist
mv packages/$(echo ${{ matrix.package }} | sed 's/_/?/')-[0-9]* dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1