pypi-list/.github/workflows/deploy-pypi-list.yml
2021-06-18 08:04:23 -05:00

35 lines
799 B
YAML

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.8
- run: pip install -e .
- run: pypi-list --full
- run: |
[[ -d site ]] || mkdir site
cp 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 }}