Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

NiklasMerz/github-deployment-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Create GitHub deployments in you actions

Note

GitHub Actions now support deplyoments very well integrated

This actions allows you to create a deployment and set a deployment status.

For options please see deployment.js and the Github documentation

First create a deployment and with flag -f create the success status:

- name: create deployment
  uses: docker://ghcr.io/niklasmerz/github-deployment-action/deployment-action:latest
  if: contains(github.ref, 'master')
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    args: -o niklasmerz -r myrepo -c master -e production
- name: set deployment status
  uses: niklasmerz/github-deployment-action@master
  if: contains(github.ref, 'master')
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    args: -o niklasmerz -r myrepo -s success -u https://url.com -f

Note see example above: you can either use the repository name or Docker image: docker://ghcr.io/niklasmerz/github-deployment-action/deployment-action:latest. Using the Docker image should be a bit faster the image does not need to be built on every run.

About

Create deployments on Github with actions

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •