From 852b4a048bddeb5a5f7ba9b07827bd17afdaec50 Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Fri, 15 Dec 2023 15:19:56 -0500 Subject: [PATCH] formatting --- .github/workflows/deploy-editor.yml | 73 ++++++++++++++--------------- 1 file changed, 36 insertions(+), 37 deletions(-) diff --git a/.github/workflows/deploy-editor.yml b/.github/workflows/deploy-editor.yml index b37c7be8..f7c7c77d 100644 --- a/.github/workflows/deploy-editor.yml +++ b/.github/workflows/deploy-editor.yml @@ -1,50 +1,49 @@ name: Pages on: - push: - branches: [main] - pull_request: - workflow_dispatch: + push: + branches: [main] + pull_request: + workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: - contents: read - pages: write - id-token: write + contents: read + pages: write + id-token: write # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: "pages" - cancel-in-progress: false + group: 'pages' + cancel-in-progress: false jobs: + Build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - uses: pnpm/action-setup@v2 + - run: | + pnpm install + pnpm build-editor + echo "gosling.js.org" >> build/CNAME + env: + NODE_OPTIONS: '--max_old_space_size=8192' + - uses: actions/upload-pages-artifact@v2 + with: + path: build - Build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - - uses: pnpm/action-setup@v2 - - run: | - pnpm install - pnpm build-editor - echo "gosling.js.org" >> build/CNAME - env: - NODE_OPTIONS: '--max_old_space_size=8192' - - uses: actions/upload-pages-artifact@v2 - with: - path: build - - Deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: Build - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + Deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: Build + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2