Merge pull request #36 from Mind-Sports-Games/pla-979-fix-api-pipelin… #38
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: 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 |