Showcase all the great work that your peers are working on and happily sharing internally.
enterprise-showcase is a static web site, hosted on GitHub Pages and generated through GitHub Actions. No need for a separate runtime or server, and you can fine tune how often you want the site to be generated.
- Browse every
internalrepository across all organizations of your GitHub Enterpise Account. - Create collections of repositories so that you can highlight great projects.
- Easily extended so you can customize it to your needs
enterprise-showcase is built with GitHub Pages, GitHub Actions, Nuxt.js and Vuetify
- Fork the following repository (like we did for this project): https://github.com/helaili/enterprise-showcase
- Enable GitHub Pages by setting
gh-pagesas the source branch
- Create a
GH_EA_TOKENsecret and provide a Personal Access Token withread:organdread:enterprisepermissions as the value (see helaili/ea-repo-list for more details). - Configure the repository retrieval job by editing the
.github\workflows\repo-list.ymland provide the name of your GitHub Enterprise Account
steps:
- uses: actions/checkout@v2
- name: Get the repos
uses: helaili/ea-repo-list@master
with:
enterprise: <replace with GitHub Enteprise Account name>
outputFilename: repositories.json
token: ${{secrets.GH_EA_TOKEN}}- Manually trigger a first repository list retrieval by starting the Generate repository list workflow. The Actions workflow should execute succesfully and you should get a freshly commited
repositories.jsonfile at the root of your repository.
- Create collections by creating a
.mdfile per collection incontent/collections. The front matter header allow you to set the collection title, description and list of repositories. The body of the document is available to provide a more detailed description of the collection.
---
title: C.R.E.A.M.
description: Cheese Rules Everything Around Me
repositories:
- octocheese/camembert
- octocheese/roquefort
- amsterdam/gouda
- vermont/cheddar
---
# All of them!!!
We love them all - The web site should be published to
https://<your org or account name>/enterprise-showcase/. In case you renamed the repository, changerouter.baseaccordingly in thenuxt.config.jsfile. Remove this variable completely if you are publishing to your organization or account-level site (<user>.github.ioor<organization>.github.io)
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generateFor detailed explanation on how things work, check out Nuxt.js docs.

