Skip to content

Commit 00dea25

Browse files
committed
release.yml and name change in pyproject.toml
1 parent e7cf3b2 commit 00dea25

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to TestPyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
id-token: write
9+
contents: read
10+
11+
jobs:
12+
build-and-publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.11"
24+
25+
- name: Install build tools
26+
run: python -m pip install build
27+
28+
- name: Build the wheel and source distribution
29+
run: python -m build
30+
31+
- name: Upload to TestPyPI
32+
uses: pypa/gh-action-pypi-publish@release/v1
33+
with:
34+
repository-url: https://test.pypi.org/legacy/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0", "setuptools_scm[toml]>=8.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "nbody-sim"
6+
name = "nbody-sim-RO"
77
dynamic = ["version"]
88
description = "N-body physics simulation in Python."
99
readme = "README.md"

0 commit comments

Comments
 (0)