From e2e1f34ea5299cb97e516237c3e1a5b953344aa0 Mon Sep 17 00:00:00 2001 From: Stephen Curran Date: Tue, 13 Aug 2024 08:41:10 -0700 Subject: [PATCH] Update render-specs.yml Signed-off-by: Stephen Curran Signed-off-by: Stephen Curran Signed-off-by: Stephen Curran --- .github/workflows/render-specs.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/render-specs.yml b/.github/workflows/render-specs.yml index d8bcd57..9118b64 100644 --- a/.github/workflows/render-specs.yml +++ b/.github/workflows/render-specs.yml @@ -13,23 +13,25 @@ on: jobs: build_spec: runs-on: ubuntu-latest + permissions: + contents: write steps: - - name: Checkout 🛎️ - uses: actions/checkout@v4 - with: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + with: persist-credentials: false - - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. - run: | + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + run: | npm install npm run render - - name: Override gitignore - run: git add -f docs/index.html + - name: Override gitignore + run: git add -f docs/index.html - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4 - with: + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages # The branch the action should deploy to. folder: . # The folder the action should deploy.