diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml
index e751ec1..97c1866 100644
--- a/.github/workflows/pypi.yml
+++ b/.github/workflows/pypi.yml
@@ -15,8 +15,10 @@ jobs:
     runs-on: ubuntu-20.04
     steps:
     - uses: actions/checkout@master
+    - name: Fetch all history for all tags and branches
+      run: git fetch --prune --unshallow
     - name: Set up Python 3.9
-      uses: actions/setup-python@v1
+      uses: actions/setup-python@v2
       with:
         python-version: 3.9
     - name: Install pypa/build