Skip to content

Commit

Permalink
docs: Update Drone Deployment docs (#5801)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfalcao committed Oct 29, 2021
1 parent a210e93 commit b5b2c18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions website/docs/deployment.mdx
Expand Up @@ -354,15 +354,16 @@ trigger:
commands:
- mkdir -p $HOME/.ssh
- ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts
- echo "$GITHUB_PRIVATE_KEY > $HOME/.ssh/id_rsa"
- echo "$GITHUB_PRIVATE_KEY" > "$HOME/.ssh/id_rsa"
- chmod 0600 $HOME/.ssh/id_rsa
- cd website
- npm i
- npm run publish-gh-pages
- npm run deploy
environment:
USE_SSH: true
GIT_USER: $DRONE_COMMIT_AUTHOR
GITHUB_PRIVATE_KEY: git_deploy_private_key
GITHUB_PRIVATE_KEY:
from_secret: "git_deploy_private_key"
```

Now, whenever you push a new tag to github, this trigger will start the drone ci job to publish your website.
Expand Down

0 comments on commit b5b2c18

Please sign in to comment.