Skip to content

Deploy to GitHub Pages #36

Deploy to GitHub Pages

Deploy to GitHub Pages #36

Workflow file for this run

name: "Deploy to GitHub Pages"
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * */7'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: "Install dependencies"
run: python -m pip install -r scripts/requirements.txt
- name: "Fetch the list of repos"
run: python scripts/get_wiki_repos.py
- name: "Generate site"
run: npx @11ty/eleventy --input=site --output=_site
- name: "Upload artifact"
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: ./_site
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
steps:
- name: "Deploy to GitHub Pages"
id: deployment
uses: actions/deploy-pages@decdde0ac072f6dcbe43649d82d9c635fff5b4e4 # v4.0.4