Fix git xet release bug (#504)

`gh release create` creates tags and thus requires repo checkout
This commit is contained in:
Di Xiao
2025-09-22 16:57:35 -07:00
committed by GitHub
parent 55234c489b
commit 15942e295e

View File

@@ -102,11 +102,14 @@ jobs:
if: ${{ github.event_name == 'workflow_dispatch' }}
needs: [linux, windows, macos]
steps:
- uses: actions/download-artifact@v4
- uses: actions/checkout@v4
- uses: actions/download-artifact@v5
with:
path: dist
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
ls -l
ls -l git-xet*/*
gh release create git-xet-${{ github.event.inputs.tag}} git-xet*/* --generate-notes --prerelease --target ${{github.sha}}
ls -l dist
ls -l dist/git-xet*/*
gh release create git-xet-${{ github.event.inputs.tag}} dist/git-xet*/* --generate-notes --prerelease --target ${{github.sha}}