Skip to content

Commit

Permalink
try to get the rendering going - take 1
Browse files Browse the repository at this point in the history
Signed-off-by: henkvancann <[email protected]>
  • Loading branch information
henkvancann committed May 31, 2024
1 parent fc69296 commit 2e2e002
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 7 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/render-specs-node2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

name: spec-up-render

on:
push:
branches:
- revised-format # change this to your current branch

jobs:
build-and-deploy-spec:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x' # This ensures Node.js 20 is used

- name: Checkout 🛎️
uses: actions/checkout@v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
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: |
npm install
node -e "require('./index')({ nowatch: true })"
rm -rf node_modules
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/
allow_empty_commit: true
force_orphan: true
9 changes: 2 additions & 7 deletions .github/workflows/render-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@ jobs:
permissions:
contents: write
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x' # This ensures Node.js 20 is used

- name: Checkout 🛎️
uses: actions/checkout@v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

Expand All @@ -29,7 +24,7 @@ jobs:
rm -rf node_modules
- name: Deploy
uses: peaceiris/actions-gh-pages@v4.0.0
uses: peaceiris/actions-gh-pages@v3.7.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/
Expand Down

0 comments on commit 2e2e002

Please sign in to comment.