docs: π add sponsoring section #261
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
name: 'docs' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- uses: webfactory/ssh-agent@v0.7.0 | |
with: | |
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} | |
- name: Install dependencies | |
run: npm i | |
- name: Build docs | |
run: npm run build:docs | |
- name: Identity | |
run: | | |
git config --global user.email "netanel7799@gmail.com" | |
git config --global user.name "NetanelBasal" | |
- name: Release to GitHub Pages | |
env: | |
USE_SSH: true | |
GIT_USER: NetanelBasal | |
run: npm run deploy --prefix docs |