fix: resolve image and font access, improve render, use new Trunk #47
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: PR Preview Build | |
| on: pull_request | |
| jobs: | |
| build-pr-preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install trunk | |
| run: | | |
| curl -sL https://github.com/trunk-rs/trunk/releases/download/v0.22.0-beta.1/trunk-x86_64-unknown-linux-gnu.tar.gz -o trunk-x86_64-unknown-linux-gnu.tar.gz | |
| tar xzf trunk-x86_64-unknown-linux-gnu.tar.gz | |
| sudo install trunk /usr/bin/trunk | |
| - name: Set build timestamp | |
| run: echo "BUILD_TIMESTAMP=$(date --rfc-3339=seconds --utc)" >> $GITHUB_ENV | |
| - name: Build page | |
| env: | |
| BUILD_COMMIT: ${{ github.sha }} | |
| run: trunk build --public-url / | |
| - name: Save PR number | |
| run: | | |
| mkdir -p ./pr | |
| echo ${{ github.event.number }} > ./pr/NR | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr | |
| path: pr/ |