-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) 路 771 Bytes
/
Copy pathpublish.yml
File metadata and controls
40 lines (31 loc) 路 771 Bytes
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
name: Publish to PyPI
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
call_tests:
uses: ./.github/workflows/tests.yml
publish-to-pypi:
runs-on: ubuntu-latest
needs: call_tests
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Dependencies
run: |
make setup
make install
- name: Build and Publish Package
run: |
PYPI_TOKEN=${{ secrets.PYPI_API_TOKEN }} make publish # Need `PYPI_API_TOKEN` secret