forked from beeware/toga
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1013 Bytes
/
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
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:
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