-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (36 loc) · 1012 Bytes
/
update_pypi.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
name: Publish Package
on:
push:
branches:
- main
paths:
- 'python/ndstorage/_version.py'
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.repository == 'micro-manager/NDStorage' }}
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flit
- name: Install package dependencies
run: |
cd python
pip install -e .
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:${{ github.workspace }}/python" >> $GITHUB_ENV
- name: Build package
run: |
cd python
flit build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1