GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — platform-samples/api/java/deployment at master · github/platform-samples

Expand file tree

/

deployment

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

deployment

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
dependency-reduced-pom.xml
dependency-reduced-pom.xml
 
 
pom.xml
pom.xml
 
 

README.md

Outline

DeployServer

A sample implementation for using GitHub Deployment API.

Ported this by Java. Powered by Spark.

Prerequisite

  • JDK8
  • Maven3
  • GitHub OAuth Token

Getting Started

First, you should set your OAuth token into an environment variable somewhere, like:

export GITHUB_OAUTH=xxxxxxx

After that, you can:

  • For development
$ mvn compile exec:java

If you aren't familiar with CLI, you can just run the main class via an execution button in your IDE as well.

  • For deployment
$ mvn clean package
$ java -jar target/DeployServer-{version}.jar

Then you can see it works on http://localhost:4567.

After you make sure this sever deployed a place where GitHub can reach out to, you can test how it interacts with GitHub via its Deployment API.

You can also place it on your local pc, then expose it by using ngrok. Please refer the direction described here.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.