Introducing EP 5.18-21 into governance docs (#341) #98
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: 🚚 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 |