Skip to content

Create GitHub API Deployment

Actions
Create a Deployment via the GitHub API
v1
Latest
Star (1)

GitHub Actions status

Create a Deployment via GitHub Deployments API

See https://developer.github.com/v3/repos/deployments/

Usage

name: 'Create Deployment'
on:
  push:
    branches:
      - master

jobs:
  create-deplyment:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Generate VERSION
        run: echo "::set-env name=VERSION::$(git describe --tags --always --dirty)"
      - name: Create Deployment
        id: deploy
        uses: abendigo/create-deployment@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          payload: ${{ env.VERSION }}
      - name: Get the deplopyment ID
        run: echo "The deployment ID was ${{ steps.deploy.outputs.id }}"

License

All scripts and documentation in this project are released under the MIT License.

Create GitHub API Deployment is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Create a Deployment via the GitHub API
v1
Latest

Create GitHub API Deployment is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.