Skip to content

Commit

Permalink
feat(ci): add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
cestef committed Jan 25, 2025
1 parent ea35f5f commit 726a51f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ jobs:
with:
tools: cestef/tap/zola svgo

- name: Cache Zola build
uses: actions/cache@v3
with:
path: |
.cache
public
key: ${{ runner.os }}-zola-${{ hashFiles('**/*.md', 'config.toml', 'templates/**/*') }}
restore-keys: |
${{ runner.os }}-zola-
- name: Build site
run: zola build

Expand All @@ -46,5 +56,4 @@ jobs:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy public --project-name=blog-cstef-dev
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 726a51f

Please sign in to comment.