name: Publish to PyPI

on:
  release:
    types: [released]

jobs:
  build:
      name: Publish release to PyPI
      env:
        PYPI_USERNAME_STSCI_MAINTAINER: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }}
        PYPI_PASSWORD_STSCI_MAINTAINER: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}
        PYPI_USERNAME_OVERRIDE: ${{ secrets.PYPI_USERNAME_OVERRIDE }}
        PYPI_PASSWORD_OVERRIDE: ${{ secrets.PYPI_PASSWORD_OVERRIDE }}
        PYPI_TEST: ${{ secrets.PYPI_TEST }}
        INDEX_URL_OVERRIDE: ${{ secrets.INDEX_URL_OVERRIDE }}
      runs-on: ubuntu-latest
      steps:

          # Check out the commit containing this workflow file.
          - name: checkout repo
            uses: actions/checkout@v2
         
          - name: custom action
            uses: spacetelescope/action-publish_to_pypi@master
            id: custom_action_0

name: Publish to PyPI

on:
  release:
    types: [released]

jobs:
  build:
      name: Publish release to PyPI
      env:
        PYPI_USERNAME_STSCI_MAINTAINER: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }}
        PYPI_PASSWORD_STSCI_MAINTAINER: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}
        PYPI_USERNAME_OVERRIDE: ${{ secrets.PYPI_USERNAME_OVERRIDE }}
        PYPI_PASSWORD_OVERRIDE: ${{ secrets.PYPI_PASSWORD_OVERRIDE }}
        PYPI_TEST: ${{ secrets.PYPI_TEST }}
        INDEX_URL_OVERRIDE: ${{ secrets.INDEX_URL_OVERRIDE }}
      runs-on: ubuntu-latest
      steps:

          # Check out the commit containing this workflow file.
          - name: checkout repo
            uses: actions/checkout@v2
            with:
              # Number of commits to fetch. 0 indicates all history for all branches and tags.
              # Default: 1
              fetch-depth: '0'
         
          - name: custom action
            uses: spacetelescope/action-publish_to_pypi@master
            id: custom_action_0

Update workflow to perform full clone
Update workflow to perform full clone

This avoids problems with `setuptools_scm`.