Skip to content

Commit 29c4cba

Browse files
authored
Merge pull request #31 from pfnet-research/pypi-gha
feat(ci): add GitHub Actions job to publish the package
2 parents 5945d64 + ffe1943 commit 29c4cba

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags: ["*"]
6+
7+
jobs:
8+
pypi-publish:
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: release
12+
url: https://pypi.org/p/torch-dftd
13+
permissions:
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
- name: create a distribution
21+
run: |
22+
pip3 install build wheel
23+
python3 -m build --wheel
24+
- name: Publish package distributions to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)