Skip to content

Commit

Permalink
ci(documentation): fix github pages and Readme
Browse files Browse the repository at this point in the history
Signed-off-by: GridexX <[email protected]>
  • Loading branch information
GridexX committed Jun 16, 2023
1 parent efcd170 commit d352cca
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 43 deletions.
43 changes: 17 additions & 26 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,33 @@ name: Build and deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches: [main]
branches: [master]

permissions:
contents: write

jobs:
build:
name: Build
name: Build and deploy
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
name: checkout documentation folder
with:
sparse-checkout: |
documentation
name: checkout repository
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: documentation/package-lock.json
- run: cd documentation && npm ci
- run: npm ci
name: npm ci
- run: cd documentation && npm run build
name: npm build
- uses: actions/upload-pages-artifact@v1
working-directory: documentation
- run: npm run deploy
name: npm run deploy
working-directory: documentation
- name: Disable Jekyll
run: touch documentation/out/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
path: ./documentation/dist

deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-22.04
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v2
id: deployment
folder: documentation/out
commit-message: "chore: deploy latest docs"
12 changes: 0 additions & 12 deletions README.markdown

This file was deleted.

6 changes: 1 addition & 5 deletions documentation/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@ module.exports = {
...withNextra(),
images: {
unoptimized: true,
},
reactStrictMode: true,
swcMinify: true,
trailingSlash: true,
distDir: "dist",
}
};

0 comments on commit d352cca

Please sign in to comment.