Refactor eleventy proposal #8
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 Eleventy on staging via rsync | |
| on: | |
| push: | |
| branches: [staging] | |
| pull_request: | |
| branches: [staging] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Check-out the repository under $GITHUB_WORKSPACE. | |
| - uses: actions/checkout@master | |
| # Build the website with Eleventy. | |
| - name: Building Eleventy… | |
| run: npm i && npm run build | |
| # Rsync files via SSH. | |
| - name: Syncing files with server… | |
| uses: burnett01/rsync-deployments@master | |
| with: | |
| switches: -avzOr --delete --exclude='.htaccess' | |
| path: _site/ | |
| remote_path: ${{ secrets.REMOTE_PATH_STAGING }} | |
| remote_host: ${{ secrets.REMOTE_HOST }} | |
| remote_port: ${{ secrets.REMOTE_PORT }} | |
| remote_user: ${{ secrets.REMOTE_USER }} | |
| remote_key: ${{ secrets.REMOTE_PRIVATE_KEY }} | |
| remote_key_pass: ${{ secrets.REMOTE_PRIVATE_KEY_PASS }} |