Commit 60cde8d4 authored by Nicholas Bollweg's avatar Nicholas Bollweg
Browse files

add cross-platform wrapper seeking, revert vercel on non-main

parent bc700704
......@@ -49,7 +49,7 @@ jobs:
${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }}
restore-keys: |
${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip-
- name: Setup pip (dependencies)
- name: Setup pip (dependecies)
run: |
pip install -r requirements-docs.txt
- name: Install
......@@ -78,11 +78,10 @@ jobs:
doit check
deploy:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: jupyterlite dist ${{ github.run_number }}
......
......@@ -338,7 +338,14 @@ class U:
@staticmethod
def do(*args, cwd=P.ROOT, **kwargs):
"""wrap a CmdAction for consistency"""
return doit.tools.CmdAction(list(args), shell=False, cwd=str(Path(cwd)))
cmd = args[0]
cmd = Path(
shutil.which(cmd)
or shutil.which(f"{cmd}.exe")
or shutil.which(f"{cmd}.cmd")
or shutil.which(f"{cmd}.bat")
).resolve()
return doit.tools.CmdAction([cmd, *args[1:]], shell=False, cwd=str(Path(cwd)))
@staticmethod
def ok(ok, **task):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment