let run manually the deploy GitHub workflow #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/[email protected] | |
- name: Install depencies | |
run: yarn install | |
- name: Build website | |
run: yarn build | |
- name: Copy site to DigitalOcean | |
uses: burnett01/[email protected] | |
with: | |
switches: --checksum --delete --human-readable --ignore-errors --progress --recursive --stats --times --verbose | |
path: public/ | |
remote_path: ${{ secrets.SSH_PATH }} | |
remote_host: ${{ secrets.SSH_HOST }} | |
remote_user: ${{ secrets.SSH_USERNAME }} | |
remote_key: ${{ secrets.SSH_KEY }} |