-
Notifications
You must be signed in to change notification settings - Fork 74
42 lines (39 loc) · 956 Bytes
/
pypi.yaml
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: Build and publish gt4sd on PyPI
on:
push:
branches:
- main
- ci-setup
jobs:
build-and-publish:
name: Build and publish gt4sd on PyPI
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
max-parallel: 3
matrix:
python-version:
- "3.10"
- 3.8
- 3.7
os:
- ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Python setup ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install build
run: |
python -m pip install build
- name: Build dists
run: |
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
skip_existing: true