Skip to content

Commit

Permalink
fix not publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumiz committed May 29, 2023
1 parent d740f53 commit 5734cf4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 33 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/premerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -47,16 +45,22 @@ 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
build
--user
- name: Build a binary wheel and a source tarball
if: github.event.pull_request.labels.name == 'automerge'
run: >-
python3 -m
build
Expand All @@ -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 }}
Expand Down
31 changes: 4 additions & 27 deletions py3d/doc/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,11 @@
" var s = document.getElementsByTagName(\"script\")[0]; \n",
" s.parentNode.insertBefore(hm, s);\n",
"})();\n",
"</script>\n",
"<div style=\"position:fixed;right:5px;bottom:5px; z-index:1;\">\n",
" <textarea id=\"comment\" placeholder=\"Some questions? Ask the author\"\n",
" style=\"with:120px; height:60px; resize:none\"></textarea>\n",
" <button id=\"submit\" type=\"button\" style=\"display:block\" >submit</button>\n",
"</div>\n",
"<script type=\"module\">\n",
" import { Octokit } from \"https://cdn.skypack.dev/pin/@octokit/core@v4.1.0-37dPUv7ak0haD8P2SFOh/mode=imports,min/optimized/@octokit/core.js\"\n",
" let comment = document.getElementById(\"comment\")\n",
" let submit = document.getElementById(\"submit\")\n",
" submit.onclick = async function () {\n",
" const octokit = new Octokit({\n",
" auth: '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'\n",
" })\n",
" await octokit.request('POST /repos/{owner}/{repo}/issues', {\n",
" owner: 'Tumiz',\n",
" repo: 'scenario',\n",
" title: comment.value.slice(0, 30),\n",
" body: comment.value\n",
" })\n",
" submit.innerHTML = \"\"\n",
" submit.style.color = \"green\"\n",
" setTimeout(() => {\n",
" submit.innerHTML = \"submit\"\n",
" submit.style.color = \"\"\n",
" }, 5000)\n",
" } \n",
"</script>"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -66,6 +40,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -115,13 +90,15 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"[Top](#Scenario-Tool-Kit)"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": []
Expand Down

0 comments on commit 5734cf4

Please sign in to comment.