Fix problem with images w/o a natural size #7
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{steps.deployment.outputs.page_url}} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y jq moreutils | |
| sudo snap install yq | |
| npm install | |
| yq --version | |
| jq --version | |
| - name: Build | |
| run: | | |
| npm run build | |
| - name: Set Status Info | |
| run: | | |
| ./bin/set_status.sh | |
| - name: Upload Artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./build/client | |
| - name: Deploy GitHub Pages | |
| uses: actions/deploy-pages@v4 |