mirror of
https://github.com/jayanta525/github-pages-directory-listing.git
synced 2025-06-18 14:15:33 -04:00
Directory listing for Github Pages
.devcontainer | ||
.github | ||
docs | ||
src | ||
tests | ||
action.yml | ||
Dockerfile | ||
entrypoint.sh | ||
LICENSE | ||
README.md |
Github Pages Directory Listing
Generate Directory Listings for Github Pages using Github Actions.
Usage
Getting Started
Add a .github/workflows/workflow.yml
to the root of your project where you want directory listings to be enabled.
name: directory-listing
on: [push]
jobs:
pages-directory-listing-release:
runs-on: ubuntu-latest
name: Directory Listings Index
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: dummy-data #checkout different branch
- name: Generate Directory Listings
uses: jayanta525/github-pages-directory-listing@v2.0.0
with:
FOLDER: data #directory to generate index
- name: Deploy to Pages
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: data
Options
Checkout different branch
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: dummy-data #checkout different branch
Choosing a folder to generate indexing
- name: Generate Directory Listings
uses: jayanta525/github-pages-directory-listing@v2.0.0
with:
FOLDER: data #directory to generate index