Skip to content

updated action

updated action #65

Workflow file for this run

name: docs
on: push
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: build-docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Setting up nextra template ⚙️
run: git clone https://github.com/shuding/nextra-docs-template docs_site
run: npm i --prefix ./docs_site

Check failure on line 23 in .github/workflows/build-docs.yml

View workflow run for this annotation

GitHub Actions / docs

Invalid workflow file

The workflow is not valid. .github/workflows/build-docs.yml (Line: 23, Col: 9): 'run' is already defined .github/workflows/build-docs.yml (Line: 24, Col: 9): 'run' is already defined
run: "echo 'Bun.write(`./docs_site/next.config.js`, `const withNextra = require(\"nextra\")({ theme: \"nextra-theme-docs\", themeConfig: \"./theme.config.tsx\" }); module.exports = withNextra({ output: \"export\", distDir: \"./build\", basePath: \"/openblox\", images: { loader: \"akamai\", path: \"\" } })`)' | bun run -"
run: "echo 'Bun.write(`./docs_site/.nojekyll`, ``)' | bun run -"
run: npm run --prefix ./docs_site build
- name: Creating artifact 🏺
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: ./docs_site/build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Publish to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v4