This repository was archived by the owner on Aug 2, 2025. It is now read-only.
fix: wrong indentation #61
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: | |
| 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@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v2 | |
| 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: 'Create ENV File' | |
| run: | | |
| touch ../StarlightWiki/.env | |
| echo VITE_TITLE="Daxa Tutorial" >> ../StarlightWiki/.env | |
| echo VITE_SITE_URL="https://tutorial.daxa.dev" >> ../StarlightWiki/.env | |
| echo VITE_GITHUB_URL="https://github.com/learndaxa/Tutorial" >> ../StarlightWiki/.env | |
| echo VITE_DISCORD_INVITE="https://discord.gg/mZrUeJfxB8" >> ../StarlightWiki/.env | |
| - name: Building Static Site | |
| run: | | |
| cd ../StarlightWiki/ | |
| npm install | |
| npm run astro build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v1 | |
| with: | |
| path: "../StarlightWiki/dist/" | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v1 |