From d025eedf44adb33391fd3239a86eb10bee918d5f Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Sun, 23 May 2021 17:23:09 -0500 Subject: [PATCH] Create deploy-pypi-list.yml --- .github/workflows/deploy-pypi-list.yml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deploy-pypi-list.yml diff --git a/.github/workflows/deploy-pypi-list.yml b/.github/workflows/deploy-pypi-list.yml new file mode 100644 index 0000000..d02cf4c --- /dev/null +++ b/.github/workflows/deploy-pypi-list.yml @@ -0,0 +1,37 @@ +name: Deploy pypi-list + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2.2.2 + with: + python-version: 3.9 + - run: | + pip install -r requirements.txt + - run: | + python pypi-list.py + - run: | + [[ -d site ]] || mkdir site + sp data/*.json site + - name: GitHub Pages + uses: crazy-max/ghaction-github-pages@v1.4.0 + with: + target_branch: docs + build_dir: site + env: + GITHUB_TOKEN: ${{ secrets.pat }}