Skip to content

Commit

Permalink
Fix search.json deployment (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
svemat01 authored Jun 10, 2024
1 parent 0e05b7b commit 7bb0a25
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: 🚚 Deploy

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-[0-9]+'
branches: [master]

env:
NODE_OPTIONS: "--max_old_space_size=8192"
Expand All @@ -28,24 +27,24 @@ jobs:
working-directory: ./blog
run: NODE_ENV=production pnpm run build

- name: Prepare tag
id: prepare_tag
if: startsWith(github.ref, 'refs/tags/')
run: |
TAG_NAME="${GITHUB_REF##refs/tags/}"
echo "::set-output name=tag_name::${TAG_NAME}"
echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}"
# - name: Prepare tag
# id: prepare_tag
# if: startsWith(github.ref, 'refs/tags/')
# run: |
# TAG_NAME="${GITHUB_REF##refs/tags/}"
# echo "::set-output name=tag_name::${TAG_NAME}"
# echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}"

- name: Cloudflare Pages Upload
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ens-blog
branch: master
directory: blog/out
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'
# - name: Cloudflare Pages Upload
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: ens-blog
# branch: master
# directory: blog/out
# # gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# wranglerVersion: '3'

# - name: Edgeserver Upload
# uses: lvkdotsh/[email protected]
Expand Down

0 comments on commit 7bb0a25

Please sign in to comment.