Merge pull request #89 from Richy-Z/main #15
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 Sklair site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Use Sklair cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: .sklair/cache | |
| key: sklair-cache-${{ runner.os }}-${{ hashFiles('sklair.json') }} | |
| restore-keys: | | |
| sklair-cache-${{ runner.os }}- | |
| - name: Install Sklair | |
| run: | | |
| wget https://github.com/numelon-oss/sklair-cli/releases/latest/download/sklair-linux-amd64 | |
| chmod +x sklair-linux-amd64 | |
| mv sklair-linux-amd64 /usr/local/bin/sklair | |
| - name: Build Sklair site | |
| run: | | |
| sklair build | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: sklair-pages | |
| publish_dir: ./build | |
| force_orphan: true |