See https://developer.github.com/v3/repos/deployments/
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 }}"
All scripts and documentation in this project are released under the MIT License.