Merge pull request #905 from Fingerling42/master #610
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |