Fix env password for fonts decryption (#17) #4
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 | |
| env: | |
| FONTS_PASSPHRASE: ${{ secrets.FONTS_PASSPHRASE }} | |
| run: openssl enc -aes-256-cbc -pbkdf2 -d -in assets/static/fonts.tar.gz.enc -pass env:FONTS_PASSPHRASE | tar xzf - -C 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 }} |