Skip to content

Set version 5.1 (Add Bestemshe) #40

Set version 5.1 (Add Bestemshe)

Set version 5.1 (Add Bestemshe) #40

Workflow file for this run

name: Publish documentation
on:
workflow_dispatch:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: "github-pages"
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Check if organization member
id: check_org_member
uses: Mind-Sports-Games/[email protected]
with:
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check Failed
if: ${{ steps.check_org_member.outputs.result == 'false' }}
run: |
echo User Does Not Belong to Mind-Sports-Games
exit 1
- name: Check Passed
run: echo The actor is an organization member
- uses: actions/checkout@v4
- name: install Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install PNPM and run pnpm install
uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: false
- run: pnpm run doc && touch docs/.nojekyll
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: docs
- uses: actions/deploy-pages@v4
id: deployment