Skip to content

Merge pull request #1825 from 0orja/troubleshoot-github-auth #83

Merge pull request #1825 from 0orja/troubleshoot-github-auth

Merge pull request #1825 from 0orja/troubleshoot-github-auth #83

Workflow file for this run

---
name: Build and Deploy
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install and Build
run: |
npm install
npx honkit build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: _book
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4