docs: update #32
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: eleventy | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| steps: | |
| - uses: actions/checkout@master | |
| - run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV | |
| - name: Build | |
| uses: cjerrington/actions-eleventy@master | |
| - run: sudo chown -R $(id -u):$(id -g) dist/ | |
| - run: echo "make withastro/action happy"; mkdir -p changelog/dist | |
| - name: Build Changelog | |
| uses: withastro/action@v3 | |
| with: | |
| path: ./changelog | |
| - name: Publish to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy dist --project-name=${{ vars.CF_PROJECT_NAME }} --commit-dirty=true |