diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..3836c8c --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,52 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + # Review gh actions docs if you want to further define triggers, paths, etc + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on + +jobs: + build: + name: Build Docusaurus + runs-on: ubuntu-latest + steps: + - name : Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + + - name : Install dependencies + run: bun install --frozen-lockfile + + - name: Build website + run: bun run build + + - name: Upload Build Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: build + + deploy: + name: Deploy to GitHub Pages + needs: build + + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + # Deploy to the github-pages environment + 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 \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index ff75934..e0f7bf8 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 4058eac..f71eae8 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -15,8 +15,8 @@ const config: Config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'zuni-lab', // Usually your GitHub org/user name. + projectName: 'zuni-lab', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn',