From 44e265a754de116bbb31f83f7f909ee9dfebe092 Mon Sep 17 00:00:00 2001 From: Gabe <7622243+decentralgabe@users.noreply.github.com> Date: Fri, 27 Oct 2023 00:01:14 -0500 Subject: [PATCH] Update render-spec.yml --- .github/workflows/render-spec.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/render-spec.yml b/.github/workflows/render-spec.yml index ddfdf8d1..f58930d2 100644 --- a/.github/workflows/render-spec.yml +++ b/.github/workflows/render-spec.yml @@ -3,27 +3,31 @@ on: push: branches: - main + jobs: - build-and-deploy-spec: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout 🛎️ + - name: Checkout uses: actions/checkout@v3 - with: - persist-credentials: false - name: Install and Build 🔧 run: | cd spec npm install - npm run build - pwd - ls -alt + npm run build - - name: Deploy - uses: peaceiris/actions-gh-pages@v3.9.3 + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: /spec/build - allow_empty_commit: true - force_orphan: true + path: './sped/build' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2