diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index dbec522..d1d04d0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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 \ No newline at end of file + folder: documentation/out + commit-message: "chore: deploy latest docs" \ No newline at end of file diff --git a/README.markdown b/README.markdown deleted file mode 100644 index a366d9a..0000000 --- a/README.markdown +++ /dev/null @@ -1,12 +0,0 @@ -A [Giter8][g8] template for ...! - -Template license ----------------- -Written in by -[other author/contributor lines as appropriate] - -To the extent possible under law, the author(s) have dedicated all copyright and related -and neighboring rights to this template to the public domain worldwide. -This template is distributed without any warranty. See . - -[g8]: https://www.foundweekends.org/giter8/ diff --git a/documentation/next.config.js b/documentation/next.config.js index b68cba7..b8e6f1a 100644 --- a/documentation/next.config.js +++ b/documentation/next.config.js @@ -8,9 +8,5 @@ module.exports = { ...withNextra(), images: { unoptimized: true, - }, - reactStrictMode: true, - swcMinify: true, - trailingSlash: true, - distDir: "dist", + } };