docs(standards): blog post for v1.11 Kotlin reference plugin (Story 1… #57
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: [main] | |
| permissions: | |
| contents: read | |
| deployments: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| fetch-depth: 0 | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: 'latest' | |
| extended: true | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '>=1.21' | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| # Node 22 — postcss-cli's bin script now passes --permission, | |
| # which Node 20 rejects as "bad option" and breaks Hugo's | |
| # PostCSS pipeline. | |
| node-version: '22' | |
| - name: Install PostCSS | |
| run: npm install postcss postcss-cli autoprefixer | |
| - name: Build | |
| run: hugo --minify | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy public --project-name=devrail-dev | |
| # Required secrets (configure in GitHub repository settings): | |
| # CLOUDFLARE_API_TOKEN - Cloudflare API token with Pages edit permission | |
| # CLOUDFLARE_ACCOUNT_ID - Cloudflare account ID |