Skip to content

Update fuses.mdx (#258) #44

Update fuses.mdx (#258)

Update fuses.mdx (#258) #44

Workflow file for this run

name: 🚚 Deploy
on:
push:
branches:
- master
env:
NODE_OPTIONS: "--max_old_space_size=8192"
jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Tools & Dependencies
uses: ./.github/actions/install
- name: Build
working-directory: ./app
run: pnpm run build
env:
TALLY_API_KEY: ${{ secrets.TALLY_API_KEY }}
- name: Cloudflare Pages Upload
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ens-docs
branch: master
directory: app/out
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'
- name: Edgeserver Upload
uses: lvkdotsh/[email protected]
with:
app_id: "207908995888658940"
server: https://api.edgeserver.io
token: ${{ secrets.EDGESERVER_TOKEN }}
directory: app/out
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
working-directory: app/scripts
shell: bash
- name: Build search.json
run: bun run build-search
working-directory: app/scripts
shell: bash
- name: Index search.json
shell: bash
run: |
curl --silent -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${{secrets.SEARCH_TOKEN}}" -d @app/out/search.json https://search.v3x.systems/indexes/ens-docs/documents?primaryKey=id