remove "public" on cert and resume #3
This file contains hidden or 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 via SSH | |
| 'on': | |
| - push | |
| - repository_dispatch | |
| permissions: | |
| actions: read | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Make sure the @v0.9.0 matches the current version of the action | |
| - uses: webfactory/ssh-agent@v0.9.0 | |
| with: | |
| ssh-private-key: ${{ secrets.PRIVATE_KEY }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build Vite site | |
| run: npm run build | |
| - name: Deploy to server | |
| run: | | |
| ssh-keyscan -H dnsecode.site >> ~/.ssh/known_hosts | |
| scp -r ./dist/* dnsecode@dnsecode.site:/var/www/dnsecode.site/html |