This repository was archived by the owner on Aug 2, 2025. It is now read-only.
Deploy to tutorial.daxa.dev #79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to tutorial.daxa.dev | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: | |
| - starlight_wiki_build | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Clone Starlight Wiki Template | |
| run: | | |
| git clone https://github.com/learndaxa/StarlightWiki.git ../StarlightWiki/ | |
| - name: Copy Tutorial Pages | |
| run: | | |
| mkdir -p ../StarlightWiki/src/content/docs/ | |
| cp -r ./docs/* ../StarlightWiki/src/content/docs/ | |
| - name: Building Static Site | |
| run: | | |
| cd ../StarlightWiki/ | |
| npm install | |
| VITE_SITE=tutorial npm run astro build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "../StarlightWiki/dist/" | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |