diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml deleted file mode 100644 index 651c0e1..0000000 --- a/.github/workflows/pypi.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: Publish to Pypi -on: - release: - types: [published] - -jobs: - publish: - name: Publish to PyPI - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Install Python3 - run: | - sudo apt-get update - sudo apt-get install python3 python3-pip - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - - name: Extract tag name - run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3) - - - name: Set version to tag - run: | - sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" osdk/const.py - - - name: Build a binary wheel - run: | - python setup.py sdist bdist_wheel - - - name: Publish a Python distribution to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }}