Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
branches:
- main
release:
branches:
- main
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
Expand All @@ -30,6 +34,7 @@ jobs:
TI_ENABLE_VULKAN: "0"

runs-on: ${{ matrix.OS }}
if: github.event_name != 'release'

steps:
- name: Print system information (Windows)
Expand Down Expand Up @@ -117,3 +122,32 @@ jobs:
# Note that it is necessary to create a new archive systematically for now:
# See: https://github.com/actions/cache/issues/1594
key: ${{ matrix.OS }}-${{ matrix.PYTHON_VERSION }}-${{ github.run_id }}-${{ github.run_attempt }}

publish-pypi:
name: Publish on PyPI
runs-on: ubuntu-24.04
permissions:
id-token: write
environment:
name: advance

if: github.event_name == 'release'

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Build wheels
run: |
pip wheel --no-deps . -w wheelhouse

- name: Publish the wheels on PyPI
uses: pypa/gh-action-pypi-publish@v1.12.4
with:
packages-dir: wheelhouse
verify-metadata: true
attestations: true
print-hash: true
skip-existing: true
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ requires = ["setuptools", "wheel", "cython>=3.0.0", "numpy>=1.26.4"]
build-backend = "setuptools.build_meta"

[project]
# name = "genesis-world-nightly"
# version = "0.0.3"
name = "genesis-world"
version = "0.2.1"
version = "0.3.0"
description = "A universal and generative physics engine"
readme = "README.md"
requires-python = ">=3.10,<3.14"
Expand Down