Merge branch 'develop' #127
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 Website | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| name: Build Website 🔨 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11.8' | |
| - name: Install Knitter. ⚙️ | |
| run: | | |
| pip install git+https://github.com/dev8community/knitter | |
| - name: Get SASS. ⚙️ | |
| run: | | |
| sudo snap install dart-sass | |
| sudo snap alias dart-sass sass | |
| - name: Build website. 🔨 | |
| run: | | |
| knitter build | |
| - name: Upload artifact. ☁️ | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: dist | |
| deploy: | |
| name: Deploy Website 🚀 | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy Website to GitHub Pages 🚀 | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |