If no indexURL is provided, we throw and catch an error and
then use ErrorStackParser to calculate where pyodide.js has
been loaded from. Resolves #2290.
ENH Calculate indexURL from error stack trace. If no indexURL is provided, we throw and catch an error and
then use ErrorStackParser to calculate where pyodide.js has
been loaded from. Resolves #2290.
name: deploy-release
on:
  push:
    tags:
      - "*.*.*"
jobs:
  deploy-pyodide-build-pypi:
    runs-on: ubuntu-latest
    environment: PyPi
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: "3.10.2"

      - name: Install dependencies
        run: python -m pip install build twine

      - name: Build wheel
        run: |
          cd pyodide-build/
          python -m build .

      - name: Check wheel
        run: |
          twine check pyodide-build/dist/*

      - name: Publish to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          user: __token__
          password: ${{ secrets.PYPI_API_TOKEN }}
          packages_dir: pyodide-build/dist/

name: deploy-release
on:
  push:
    tags:
      - "*.*.*"
jobs:
  deploy-pyodide-build-pypi:
    runs-on: ubuntu-latest
    environment: PyPi
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: "3.10.2"

      - name: Install dependencies
        run: python -m pip install build twine

      - name: Build wheel
        run: |
          cd pyodide-build/
          python -m build .

      - name: Check wheel
        run: |
          twine check pyodide-build/dist/*

      - name: Publish to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          user: __token__
          password: ${{ secrets.PYPI_API_TOKEN }}
          packages_dir: pyodide-build/dist/
