tp3 clean #216
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: scilus_website build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: scilus-docker | |
| steps: | |
| - name: Install dependancies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| git rsync | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.1.1 | |
| with: | |
| submodules: false | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v2 | |
| with: | |
| hugo-version: '0.92.2' | |
| extended: true | |
| - name: Build | |
| run: | | |
| hugo -D -F -b "https://scil.usherbrooke.ca" -d scil.usherbrooke.ca | |
| find scil.usherbrooke.ca/ -type d -exec chmod 755 {} + | |
| find scil.usherbrooke.ca/ -type f -exec chmod 644 {} + | |
| - name: rsync deployments | |
| uses: burnett01/rsync-deployments@v8 | |
| with: | |
| switches: --delete -azr | |
| path: scil.usherbrooke.ca/ | |
| remote_path: ${{ secrets.REMOTE_PATH }} | |
| remote_host: ${{ secrets.REMOTE_HOST }} | |
| remote_user: ${{ secrets.REMOTE_USER }} | |
| remote_key: ${{ secrets.DEPLOY_KEY }} |