Skip to content

github-pages

github-pages #107

Workflow file for this run

name: Deploy index.html
on:
workflow_dispatch:
repository_dispatch:
event_type: github-pages
push:
branches:
- "main"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
deploy-index:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Generate index
run: |
mkdir -p github-pages/simple
pip install pygithub
python generate_index.py > github-pages/simple/index.html
env:
GH_TOKEN: ${{ github.token }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: github-pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2