ci: install website deployment tools (#19) #2
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: Website deployment | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - website/** | |
| - ci/tasks/website-check | |
| - ci/tasks/deploy-website | |
| - .github/workflows/website.yml | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: [self-hosted, node-b, linux, x64] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install deployment tools | |
| run: sudo apt-get update && sudo apt-get install -y rsync openssh-client | |
| - name: Validate website | |
| run: ci/tasks/website-check | |
| - name: Deploy website | |
| env: | |
| DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} | |
| run: ci/tasks/deploy-website |