Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niklasmerz/github-deployment-action
Create deployments on Github with actions
https://github.com/niklasmerz/github-deployment-action
actions deployment github-action github-actions github-deployment
Last synced: 7 days ago
JSON representation
Create deployments on Github with actions
- Host: GitHub
- URL: https://github.com/niklasmerz/github-deployment-action
- Owner: NiklasMerz
- License: mit
- Created: 2019-01-14T21:11:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-25T14:42:37.000Z (10 months ago)
- Last Synced: 2024-10-04T11:39:30.861Z (about 1 month ago)
- Topics: actions, deployment, github-action, github-actions, github-deployment
- Language: JavaScript
- Size: 48.8 KB
- Stars: 38
- Watchers: 4
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Create GitHub deployments in you actions
> If you have any questions please ping me. This action basically works but has not all features I want it to.
This actions allows you to create a deployment and set a deployment status.
For options please see `deployment.js` and the [Github documentation](https://developer.github.com/v3/repos/deployments/)
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.