packaging-problems icon indicating copy to clipboard operation
packaging-problems copied to clipboard

ci/cd workflow fails to create github releases: Missing token or not a git repository

Open waterboy96 opened this issue 2 years ago • 0 comments

Problem description

Hi,

I tried following the guide for publishing package releases: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

At first I get a complaint for the lack of a token when running this step: - name: Create GitHub Release run: >- gh release create '${{ github.ref_name }}' --notes ""

After changing it to: - name: Create GitHub Release env: GITHUB_TOKEN: ${{ github.token }} run: >- gh release create '${{ github.ref_name }}' --notes ""

I get a complaint that: "failed to run git: fatal: not a git repository (or any of the parent directories): .git"

Any help would be greatly appreciated.

waterboy96 avatar Oct 31 '23 14:10 waterboy96