Skip to content

Commit f95235e

Browse files
Release PyPI (#309)
* Renamed tests workflow * Added workflow to publish to PyPI * Added publishing to testpypi on pr * Some changes to publish workflow * Updated token name * Removed tokens * Added verbose * Running on push tags * changed email addresses in pyproject.toml --------- Co-authored-by: Jorinde van de Vis <jorindevandevis@outlook.com>
1 parent 5b98b29 commit f95235e

File tree

5 files changed

+43
-80
lines changed

5 files changed

+43
-80
lines changed

.github/workflows/documentation.yml

-44
This file was deleted.

.github/workflows/pr.yml

-32
This file was deleted.

.github/workflows/publish.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
push:
7+
tags:
8+
- 'v*.*.*'
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: testpypi
16+
url: https://test.pypi.org/project/WallGo/
17+
permissions:
18+
id-token: write
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.11'
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install build
30+
- name: Build package
31+
run: python -m build
32+
33+
- name: Publish package
34+
uses: pypa/gh-action-pypi-publish@release/v1
35+
with:
36+
repository-url: https://test.pypi.org/legacy/
37+
verbose: true

.github/workflows/main.yml .github/workflows/tests.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: WallGo main tests
1+
name: WallGo tests
22

33
on:
44
push:
55
branches: [ main ]
6+
pull_request:
7+
workflow_dispatch:
68

79
jobs:
810
build:

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ build-backend = "setuptools.build_meta"
66
name = "WallGo"
77
dynamic = ["version"]
88
authors = [
9-
{name = "Andreas Ekstedt", email = "andreas.ekstedt@desy.de"},
9+
{name = "Andreas Ekstedt", email = "andreas.ekstedt@physics.uu.se"},
1010
{name = "Oliver Gould", email = "oliver.gould@nottingham.ac.uk"},
1111
{name = "Joonas Hirvonen", email = "joonas.hirvonen@nottingham.ac.uk"},
1212
{name = "Benoit Laurent", email = "benoit.laurent@mail.mcgill.ca"},
1313
{name = "Lauri Niemi", email = "lauri.b.niemi@helsinki.fi"},
14-
{name = "Philipp Schicho", email = "schicho@itp.uni-frankfurt.de"},
15-
{name = "Jorinde van de Vis", email = "vandevis@lorentz.leidenuniv.nl"},
14+
{name = "Philipp Schicho", email = "philipp.schicho@unige.ch"},
15+
{name = "Jorinde van de Vis", email = "jorinde.van.de.vis@cern.ch"},
1616
]
1717
description = "A package for computing the bubble wall speed in cosmological phase transitions."
1818
license = {text = "GPL v3.0"}

0 commit comments

Comments
 (0)