Newer
Older
thu-learn-downloader-optimized / Taskfile.yaml
@github-actions[bot] github-actions[bot] on 11 Dec 2023 588 bytes ci: sync with template repository
version: "3"

tasks:
  build:
    cmds:
      - poetry build

  clean:
    cmds:
      - git clean -d --force -X

  dist:
    cmds:
      - bash scripts/dist.sh "{{OS}}" "{{ARCH}}" "{{.PYTHON_VERSION}}" "{{exeExt}}"
    vars:
      PYTHON_VERSION:
        sh: python scripts/python_version.py

  publish:
    cmds:
      - poetry publish --build

  run:
    cmds:
      - OPENSSL_CONF="openssl.cnf" tld

  setup:
    cmds:
      - micromamba --yes --name="thu-learn-downloader" create libpython-static python=3.11
      - micromamba --yes --name="thu-learn-downloader" run poetry install