Skip to content

Merge pull request #908 from zirreal/robonomics-wiki-test #613

Merge pull request #908 from zirreal/robonomics-wiki-test

Merge pull request #908 from zirreal/robonomics-wiki-test #613

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Robonomics Wiki Build
on:
push:
branches: ['master']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['20']
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install packages
run: npm ci
- name: Run npm build
run: npm run build
env:
GSCRIPT_ID: ${{ secrets.GRIDSOME_GSCRIPTID }}
CAPTCHA_ID: ${{ secrets.GRIDSOME_CAPTCHAID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./dist
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
cname: wiki.robonomics.network