Skip to content

Commit 6b504f0

Browse files
committed
updated deploy.yaml and manifest.in
1 parent 42288f7 commit 6b504f0

2 files changed

Lines changed: 25 additions & 24 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,29 @@ jobs:
88
deploy:
99
name: Deploy to PyPI
1010
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
1113

1214
steps:
13-
- uses: actions/checkout@v4
14-
- name: Set up Python
15-
uses: actions/setup-python@v5
16-
with:
17-
python-version: '3.10'
18-
- name: Install dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install build twine
22-
- name: Build and publish
23-
env:
24-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
25-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26-
run: |
27-
python -m build
28-
twine upload dist/*
29-
- uses: actions/upload-artifact@v4
30-
with:
31-
name: dist
32-
path: |
33-
dist/*
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.10'
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install build
26+
27+
- name: Build package
28+
run: python -m build
29+
30+
- name: Publish to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1
32+
33+
- uses: actions/upload-artifact@v4
34+
with:
35+
name: dist
36+
path: dist/*

MANIFEST.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
include versioneer.py
2-
include bifacial_radiance/_version.py
3-
include bifacial_radiance/data/*
1+
include bifacial_radiance/data/*
42
include bifacial_radiance/images/*

0 commit comments

Comments
 (0)