/create-deployment

Primary LanguageJavaScriptMIT LicenseMIT

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.