Update python-publish.yml

add action to fetch tags in order for SCM versioning to work
This commit is contained in:
Gilles Boccon-Gibod
2022-08-01 17:21:19 -07:00
committed by GitHub
parent 6dfb07d7b9
commit f4f84dffef

View File

@@ -11,7 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check out from Git
uses: actions/checkout@v3
- name: Get history and tags for SCM versioning to work
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python
uses: actions/setup-python@v3
with: