Skip to content

Commit 8e064ea

Browse files
committed
Try release with github actions and rebased repo.
1 parent aea5371 commit 8e064ea

File tree

2 files changed

+40
-32
lines changed

2 files changed

+40
-32
lines changed

.github/workflows/publish.yml

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -151,34 +151,42 @@ jobs:
151151
asset_name: ${{env.wheel_name}}
152152
asset_content_type: application/*
153153

154-
# publish_package:
155-
# name: Publish package
156-
# needs: [build_wheels]
157-
158-
# runs-on: ubuntu-latest
159-
160-
# steps:
161-
# - uses: actions/checkout@v3
162-
163-
# - uses: actions/setup-python@v4
164-
# with:
165-
# python-version: '3.10'
166-
167-
# - name: Install dependencies
168-
# run: |
169-
# pip install ninja packaging setuptools wheel twine
170-
# # We don't want to download anything CUDA-related here
171-
# pip install torch --index-url https://download.pytorch.org/whl/cpu
172-
173-
# - name: Build core package
174-
# env:
175-
# FLASH_ATTENTION_SKIP_CUDA_BUILD: "TRUE"
176-
# run: |
177-
# python setup.py sdist --dist-dir=dist
178-
179-
# - name: Deploy
180-
# env:
181-
# TWINE_USERNAME: "__token__"
182-
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
183-
# run: |
184-
# python -m twine upload dist/*
154+
- name: Upload Artifact
155+
uses: actions/upload-artifact@v4
156+
with:
157+
name: ${{env.wheel_name}}
158+
path: ./dist/${{env.wheel_name}}
159+
160+
publish_package:
161+
name: Publish package
162+
needs: [build_wheels]
163+
164+
runs-on: ubuntu-latest
165+
permissions:
166+
id-token: write
167+
168+
steps:
169+
- uses: actions/checkout@v3
170+
171+
- uses: actions/setup-python@v4
172+
with:
173+
python-version: '3.10'
174+
175+
- name: Install dependencies
176+
run: |
177+
pip install setuptools==68.0.0
178+
pip install git+https://github.com/nshepperd/setuptools-cuda-cpp
179+
pip install ninja packaging wheel pybind11
180+
181+
- name: Build core package
182+
run: |
183+
python setup.py sdist --dist-dir=dist
184+
185+
- name: Retrieve release distributions
186+
uses: actions/download-artifact@v4
187+
with:
188+
path: dist/
189+
merge-multiple: true
190+
191+
- name: Publish release distributions to PyPI
192+
uses: pypa/gh-action-pypi-publish@release/v1

src/flash_attn_jax/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
from .flash import flash_mha
2-
__version__ = 'v2.5.5'
2+
__version__ = 'v0.1.0'

0 commit comments

Comments
 (0)