Skip to content

Commit

Permalink
Update Drone Deployment docs
Browse files Browse the repository at this point in the history
- Fix typo in "echo" command
- Update command to "npm run deploy"
- Update Drone config to use secrets properly
  • Loading branch information
gabrielfalcao authored Oct 27, 2021
1 parent 68c9701 commit 5441aaf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions website/docs/deployment.mdx
Original file line number Diff line number Diff line change
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 5441aaf

Please sign in to comment.