name: PyPi Release
on:
  push

jobs:
  release:
    name: Release pyconll
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2.3.2
      - name: Setup Python 3.8.5
        uses: actions/setup-python@v1
        with:
          python-version: 3.8.5
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install setuptools==41.6.0
          pip install wheel==0.31.1
      - name: Build pyconll distributables
        run: |
          python setup.py sdist bdist_wheel
      - name: Publish packages from dist/*
        uses: pypa/gh-action-pypi-publish@v1.3.1
        with:
          password: ${{ secrets.TEST_PYPI_API_TOKEN }}
          repository_url: https://test.pypi.org/legacy/
name: Pyconll Release to PyPi
on:
  release:
    types:
      - released

jobs:
  release:
    name: Release pyconll
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2.3.2
      - name: Setup Python 3.8.5
        uses: actions/setup-python@v1
        with:
          python-version: 3.8.5
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install setuptools==41.6.0
          pip install wheel==0.31.1
      - name: Build pyconll distributables
        run: |
          python setup.py sdist bdist_wheel
      - name: Publish packages from dist/*
        # Make sure the current git ref is tagged.
        if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
        uses: pypa/gh-action-pypi-publish@v1.3.1
        with:
          password: ${{ secrets.TEST_PYPI_API_TOKEN }}
          repository_url: https://test.pypi.org/legacy/
Add back changes and update name to be more clear and change to release event.
Add back changes and update name to be more clear and change to release event.
