Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create deployment
  • Loading branch information
jonrohan committed Apr 6, 2021
commit 00d524f345c1ef27978570910eafc8247356f353
7 changes: 5 additions & 2 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const deployments = await github.actions.getPendingDeploymentsForRun({
const deployments = await github.repos.createDeployment({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
ref: context.ref,
transient_environment: true,
environment: 'preview',
description: 'Deploying preview docs site.'
})
console.log(deployments)
# - uses: actions/github-script@v3
Expand Down