https://github.com/conormacbride/gh-serve
Serve GitHub Actions HTML artifacts locally ๐
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
โCITATION.cff file
-
โcodemeta.json file
Found codemeta.json file -
โ.zenodo.json file
-
โDOI references
-
โAcademic publication links
-
โAcademic email domains
-
โInstitutional organization owner
-
โJOSS paper metadata
-
โScientific vocabulary similarity
Low similarity (7.0%) to scientific vocabulary
Keywords
Repository
Serve GitHub Actions HTML artifacts locally ๐
Basic Info
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
gh-serve
Serve GitHub Actions HTML artifacts locally ๐
gh-serve is a GitHub CLI extension that finds GitHub Actions artifacts for the current PR, or branch, and serves them on a local web server. This allows you to quickly preview HTML artifacts, such as CI test reports or documentation websites.
Installation
gh extension install ConorMacBride/gh-serve
Upgrade:
gh extension upgrade gh-serve
Usage
Navigate to a GitHub repository, and run:
gh serve
It will find artifacts for GitHub Actions workflow runs for the latest commit to the current open PR, or branch.
If there are multiple artifacts, an interactive menu will appear, allowing you to select the one to serve.
The artifact will be hosted at http://localhost:8080/.
Available flags:
text
--no-browser don't open the artifact in your default browser
--no-cache don't use cached artifacts
--port string port to serve the artifact on (default "8080")
-h, --help show help for command
How it works
- ๐ Finds GitHub Actions workflow runs for the current PR, or branch
- Only finds runs for the latest remote commit
- If the current branch has an open PR, prefer
pull_requestevents
- ๐ Lists all the artifacts for the workflow runs
- Interactively select the artifact to serve, if there are multiple
- ๐พ Downloads the artifact
- Caches in
<repo-root>/.cache/gh-serve/<run-id>/<artifact-name>/ - Ignore cache with
--no-cache
- Caches in
- ๐ Serves the artifact on a local web server
- Default port is
8080 - Change port with
--port <port>
- Default port is
- ๐ Opens the artifact in your default browser
- Skip with
--no-browser
- Skip with
Owner
- Name: Conor MacBride
- Login: ConorMacBride
- Kind: user
- Location: Derry, Northern Ireland
- Website: macbride.me
- Repositories: 8
- Profile: https://github.com/ConorMacBride
Data Scientist ยท Astrophysics PhD
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
- Total downloads: unknown
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 2
proxy.golang.org: github.com/ConorMacBride/gh-serve
- Homepage: https://github.com/ConorMacBride/gh-serve
- Documentation: https://pkg.go.dev/github.com/ConorMacBride/gh-serve#section-documentation
- License: MIT
-
Latest release: v1.0.0
published almost 3 years ago
Rankings
proxy.golang.org: github.com/conormacbride/gh-serve
- Documentation: https://pkg.go.dev/github.com/conormacbride/gh-serve#section-documentation
-
Latest release: v1.0.0
published almost 3 years ago