Skip to content

ci: test successful deployment #1

ci: test successful deployment

ci: test successful deployment #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Create new deployment
run: |
gh api --method POST \
-H "Accept: application/vnd.github+json" \
/repos/${{ github.repository }}/deployments \
-f "ref=production" \
-f "environment=production"
DEPLOYMENT_ID=$(gh api /repos/ParzivalEugene/michkoff-links/deployments | jq -r '.[0].id')
- name: Create new deployment status
run: |
gh api --method POST \
-H "Accept: application/vnd.github+json" \
/repos/${{ github.repository }}/deployments/${{ env.DEPLOYMENT_ID }}/statuses \
-f "state=pending"
-f "auto_inactive=true"
- name: Fake deployment
run: |
sleep 10
- name: Update deployment status
run: |
gh api --method POST \
-H "Accept: application/vnd.github+json" \
/repos/${{ github.repository }}/deployments/${{ env.DEPLOYMENT_ID }}/statuses \
-f "state=success"
-f "auto_inactive=true"