Skip to content

Merge pull request #931 from ensdomains/remove-yalc #4756

Merge pull request #931 from ensdomains/remove-yalc

Merge pull request #931 from ensdomains/remove-yalc #4756

name: Cloudflare Pages
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
NEXT_PUBLIC_INTERCOM_ID: re9q5yti
NEXT_PUBLIC_DRPC_KEY: AnmpasF2C0JBqeAEzxVO8aTteiMlrW4R75hpDonbV6cR
on: [push]
jobs:
deploy:
if: ${{ always() }}
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Misc. Deps
run: sudo apt-get install -y libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
- name: Install pnpm
run: corepack enable pnpm
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Comparison of locales for missing keys
run: pnpm compare-locales
- name: Build and Export
if: ${{ github.ref == 'refs/heads/main' }}
run: pnpm build && pnpm export
- name: Build and Export with Profiler
if: ${{ github.ref != 'refs/heads/main' }}
run: pnpm build:preview && pnpm export
- name: Generate sitemap
if: ${{ github.ref == 'refs/heads/main' }}
run: |
mkdir -p ./out/sitemaps
pnpm generate:sitemaps
env:
SITEMAP_GRAPH_KEY: ${{ secrets.SITEMAP_GRAPH_KEY }}
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: 'v3.57.1'
command: pages deploy --project-name=ens-app-v3
secrets: |
GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Submit sitemap
if: ${{ github.ref == 'refs/heads/main' }}
run: curl https://www.google.com/ping\?sitemap=https://app.ens.domains/sitemap.xml