diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce97cfb..9720635 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,8 +80,8 @@ jobs: - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - - uses: actions/download-artifact@v3 - with: {name: python-distribution-files, path: dist/} + # - uses: actions/download-artifact@v3 + # with: {name: python-distribution-files, path: dist/} - name: Install tox-gh plugin run: python -m pip install tox-gh>=1.2 - name: Setup test suite @@ -109,57 +109,57 @@ jobs: env_vars: OS,PYTHON verbose: true - pypi-publish: - needs: [prepare, test] - if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: {python-version: "3.11"} - - uses: actions/download-artifact@v3 - with: {name: python-distribution-files, path: dist/} - - name: Publish Python Package to PyPI - env: - TWINE_REPOSITORY: pypi - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: pipx run --spec 'tox!=3.0' tox -e publish + # pypi-publish: + # needs: [prepare, test] + # if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }} + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - uses: actions/setup-python@v4 + # with: {python-version: "3.11"} + # - uses: actions/download-artifact@v3 + # with: {name: python-distribution-files, path: dist/} + # - name: Publish Python Package to PyPI + # env: + # TWINE_REPOSITORY: pypi + # TWINE_USERNAME: __token__ + # TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + # run: pipx run --spec 'tox!=3.0' tox -e publish - docker-publish: - needs: [prepare, test] - if: ${{ github.event_name == 'push' }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 - with: {name: python-distribution-files, path: dist/} - - uses: docker/setup-qemu-action@v2 - - uses: docker/setup-buildx-action@v2 - - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - id: meta - uses: docker/metadata-action@v4 - with: - images: | - ghcr.io/${{ github.repository }} - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=ref,event=branch - type=sha - - name: Publish Python Package to Docker Hub and GHCR - uses: docker/build-push-action@v3 - with: - platforms: linux/amd64,linux/arm64 - context: . - file: src/docker/Dockerfile - build-args: | - TARBALL_PATH=${{ needs.prepare.outputs.tarball-path }} - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + # docker-publish: + # needs: [prepare, test] + # if: ${{ github.event_name == 'push' }} + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - uses: actions/download-artifact@v3 + # with: {name: python-distribution-files, path: dist/} + # - uses: docker/setup-qemu-action@v2 + # - uses: docker/setup-buildx-action@v2 + # - uses: docker/login-action@v2 + # with: + # registry: ghcr.io + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + # - id: meta + # uses: docker/metadata-action@v4 + # with: + # images: | + # ghcr.io/${{ github.repository }} + # tags: | + # type=semver,pattern={{version}} + # type=semver,pattern={{major}}.{{minor}} + # type=semver,pattern={{major}} + # type=ref,event=branch + # type=sha + # - name: Publish Python Package to Docker Hub and GHCR + # uses: docker/build-push-action@v3 + # with: + # platforms: linux/amd64,linux/arm64 + # context: . + # file: src/docker/Dockerfile + # build-args: | + # TARBALL_PATH=${{ needs.prepare.outputs.tarball-path }} + # push: true + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }}