From 3906facbc6e776cc718424a387208335474eb2cc Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 19 Oct 2024 08:47:15 -0700 Subject: [PATCH] CI: fix release workflow --- .github/workflows/make-release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index 7dd1231..78e1a9a 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -14,6 +14,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-python@v5 with: @@ -21,14 +23,16 @@ jobs: - name: Build release distributions run: | - # NOTE: put your own distribution build steps here. + # check out latest tag + git checkout $(git describe --tags --abbrev=0) + # NOTE: put your own distribution build steps here. python -m pip install build python -m build - name: Upload distributions uses: actions/upload-artifact@v4 with: - name: release-dists + name: python-package-distributions path: dist/ github-release: @@ -81,7 +85,7 @@ jobs: - name: Retrieve release distributions uses: actions/download-artifact@v4 with: - name: release-dists + name: python-package-distributions path: dist/ - name: Publish release distributions to PyPI