my system configurations ^-^
at main 1.0 kB view raw
1name: Deploy site 2 3on: 4 push: 5 branches: [main] 6 workflow_dispatch: 7 8permissions: 9 contents: read 10 pages: write 11 id-token: write 12 13concurrency: 14 group: pages 15 cancel-in-progress: false 16 17jobs: 18 build: 19 runs-on: ubuntu-latest 20 steps: 21 - name: Checkout 22 uses: actions/checkout@v4 23 with: 24 fetch-depth: 0 25 - uses: oven-sh/setup-bun@v2 26 - name: Setup Pages 27 uses: actions/configure-pages@v4 28 - name: Install dependencies 29 run: bun install 30 working-directory: docs 31 - name: Build with VitePress 32 run: bun run build 33 working-directory: docs 34 - name: Upload artifact 35 uses: actions/upload-pages-artifact@v3 36 with: 37 path: docs/.vitepress/dist 38 39 deploy: 40 environment: 41 name: github-pages 42 url: ${{ steps.deployment.outputs.page_url }} 43 needs: build 44 runs-on: ubuntu-latest 45 steps: 46 - name: Deploy to GitHub Pages 47 id: deployment 48 uses: actions/deploy-pages@v4