From ace2b6b21a706e7d157338a543526611656e0e36 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 22 Nov 2020 12:17:15 +0100 Subject: [PATCH] Fixed publishing workflow --- .github/workflows/publish.yml | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9e2cbf3c9..170fb5db2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,31 +28,31 @@ env: PYTHON_VERSION: 3.x jobs: - publish_pypi: - name: Build and push Python package - if: github.event.pull_request.head.repo.fork == false - runs-on: ubuntu-latest - steps: + # publish_pypi: + # name: Build and push Python package + # if: github.event.pull_request.head.repo.fork == false + # runs-on: ubuntu-latest + # steps: - - name: Checkout repository - uses: actions/checkout@v2 + # - name: Checkout repository + # uses: actions/checkout@v2 - - name: Set up Python runtime - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} + # - name: Set up Python runtime + # uses: actions/setup-python@v1 + # with: + # python-version: ${{ env.PYTHON_VERSION }} - - name: Set up Python dependencies - run: pip install --upgrade setuptools wheel twine + # - name: Set up Python dependencies + # run: pip install --upgrade setuptools wheel twine - - name: Build Python package - run: python setup.py build sdist bdist_wheel --universal + # - name: Build Python package + # run: python setup.py build sdist bdist_wheel --universal - - name: Publish Python package - env: - PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/* + # - name: Publish Python package + # env: + # PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} + # PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + # run: twine upload --disable-progress-bar -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/* publish_docker: name: Build and push Docker image @@ -95,5 +95,5 @@ jobs: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} run: | - docker push --quiet ${{ github.event.repository.full_name }} - docker push --quiet ghcr.io/${{ github.event.repository.full_name }} + docker push ${{ github.event.repository.full_name }} + docker push ghcr.io/${{ github.event.repository.full_name }}