forked from microsoftgraph/msgraph-sdk-python-core
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 754 Bytes
/
publish.yml
File metadata and controls
28 lines (26 loc) · 754 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
name: Publish MsGraph-Core package to PyPI
on:
release:
types:
- published
jobs:
publish:
name: Create release and publish distribution to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install flit
run: |
pip install flit
- name: Publish the distibution to PyPI
if: github.repository == 'microsoftgraph/msgraph-sdk-python-core'
run: flit publish
env:
FLIT_INDEX_URL: https://upload.pypi.org/legacy/
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}