packaging-problems
packaging-problems copied to clipboard
ci/cd workflow fails to create github releases: Missing token or not a git repository
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.