feat: calculate CRC32 for photos thumbnails #362
This file contains 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: main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Restore cache | |
uses: actions/cache@v3 | |
with: | |
path: cache | |
key: ${{ runner.os }}-cache | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
- name: Build | |
env: | |
ROOT_URL: https://chuhlomin.com | |
REMOVE_HTML_EXT: "1" | |
COMMENTS_ENABLED: "1" | |
COMMENTS_SITE_ID: "micro" | |
SEARCH_ENABLED: "1" | |
SEARCH_HOST: "https://search.chuhlomin.com/" | |
SEARCH_MASTER_KEY: ${{ secrets.SEARCH_MASTER_KEY }} | |
SEARCH_API_KEY: ${{ secrets.SEARCH_API_KEY }} | |
run: | |
make build | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3.3.2 | |
if: github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip deploy]') | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
command: pages deploy output --project-name=homepage --branch=main --commit-dirty=true |