Skip to content

Commit ad917ac

Browse files
FindHaofacebook-github-bot
authored andcommitted
Fix GitHub Actions ref check and update packaging license metadata (#98)
Summary: This PR refines CI logic and corrects packaging metadata. - Adjust GitHub Actions workflow to consistently use `github.ref_type` for tag detection in nightly publish job. - Update `pyproject.toml` to use canonical `license = "BSD-3-Clause"` and include `license-files` for proper distribution metadata. These changes improve release correctness for both nightly and stable builds. Pull Request resolved: #98 Reviewed By: sfzhu93 Differential Revision: D82171592 Pulled By: FindHao fbshipit-source-id: d98d0fc11717ad455d78448b5029eda73973427f
1 parent e6f0b85 commit ad917ac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/nightly-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Build sdist/wheel
4242
run: |
43-
if [ "${GITHUB_REF_TYPE}" != "tag" ]; then
43+
if [ "${{ github.ref_type }}" != "tag" ]; then
4444
export SETUPTOOLS_SCM_PRETEND_VERSION=${{ steps.ver.outputs.NVER }}
4545
fi
4646
python -m build

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ readme = "README.md"
1414
authors = [
1515
{ name="Yueming Hao", email="yhao@meta.com" },
1616
]
17-
license = { text = "BSD-3-Clause" }
17+
license = "BSD-3-Clause"
18+
license-files = ["LICENSE*"]
1819

1920

2021
[project.optional-dependencies]

0 commit comments

Comments
 (0)