From 5734cf4f1e985c28a104744d70a1a55a6aa7e253 Mon Sep 17 00:00:00 2001 From: tumiz Date: Mon, 29 May 2023 23:24:56 +0800 Subject: [PATCH] fix not publish --- .github/workflows/premerge.yml | 15 +++++++++------ py3d/doc/index.ipynb | 31 ++++--------------------------- 2 files changed, 13 insertions(+), 33 deletions(-) diff --git a/.github/workflows/premerge.yml b/.github/workflows/premerge.yml index c7e9493..52057c5 100644 --- a/.github/workflows/premerge.yml +++ b/.github/workflows/premerge.yml @@ -7,8 +7,6 @@ on: # Triggers the workflow on push or pull request events but only for the "master" branch pull_request: branches: ["master"] - paths-ignore: - - .github/** # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -22,7 +20,7 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 with: - fetch-depth: 0 + fetch-depth: 1 ref: ${{ github.event.pull_request.head.ref }} - name: install deps @@ -47,8 +45,15 @@ jobs: - name: label uses: actions/labeler@v4 + # - name: get labels + # run: | + # labels="$(gh api repos/${{ github.repository_owner }}/${{ github.repository_owner }}/pulls/${{ github.event.pull_request.number }} --jq '.labels.[].name')" + # echo "$labels" + # shell: bash + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install pypa/build - if: github.event.pull_request.labels.name == 'automerge' run: >- python3 -m pip install @@ -56,7 +61,6 @@ jobs: --user - name: Build a binary wheel and a source tarball - if: github.event.pull_request.labels.name == 'automerge' run: >- python3 -m build @@ -66,7 +70,6 @@ jobs: py3d - name: Publish distribution to PyPI - if: github.event.pull_request.labels.name == 'automerge' uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI }} diff --git a/py3d/doc/index.ipynb b/py3d/doc/index.ipynb index 1b7be51..cc086d2 100644 --- a/py3d/doc/index.ipynb +++ b/py3d/doc/index.ipynb @@ -12,37 +12,11 @@ " var s = document.getElementsByTagName(\"script\")[0]; \n", " s.parentNode.insertBefore(hm, s);\n", "})();\n", - "\n", - "
\n", - " \n", - " \n", - "
\n", - "" ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -66,6 +40,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -115,6 +90,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ @@ -122,6 +98,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": []