Let's switch to zip (#18) #5
Workflow file for this run
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 to Cloudflare Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - run: sudo apt-get update && sudo apt-get install -y imagemagick | |
| - uses: astral-sh/setup-uv@v5 | |
| - run: uv sync | |
| - name: Decrypt fonts | |
| run: unzip -P '${{ secrets.FONTS_PASSPHRASE }}' assets/static/fonts.zip -d assets/static | |
| - run: uv run lektor build --output-path build | |
| - uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy build --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} |