chore(deps): bump lycheeverse/lychee-action in /.github/workflows (#25) #397
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@v4 | |
with: | |
path: cache | |
key: ${{ runner.os }}-cache | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
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.5.0 | |
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 |