|
|
@@ -1,39 +0,0 @@
|
|
|
-name: Deploy GitHub Pages
|
|
|
-
|
|
|
-on:
|
|
|
- push:
|
|
|
- branches:
|
|
|
- - master
|
|
|
-
|
|
|
-jobs:
|
|
|
- build:
|
|
|
- runs-on: ubuntu-latest
|
|
|
- steps:
|
|
|
- - name: Checkout
|
|
|
- uses: actions/checkout@v4
|
|
|
- - name: Setup Pages
|
|
|
- id: pages
|
|
|
- uses: actions/configure-pages@v5
|
|
|
-
|
|
|
- - name: Build Site
|
|
|
- run: |
|
|
|
- ./scripts/build.sh
|
|
|
- - name: Upload artifact
|
|
|
- uses: actions/upload-pages-artifact@v3
|
|
|
- with:
|
|
|
- path: './docs/.vitepress/dist'
|
|
|
-
|
|
|
- deploy:
|
|
|
- environment:
|
|
|
- name: github-pages
|
|
|
- url: ${{ steps.deployment.outputs.page_url }}
|
|
|
- runs-on: ubuntu-latest
|
|
|
- needs: build
|
|
|
- permissions:
|
|
|
- contents: read
|
|
|
- pages: write
|
|
|
- id-token: write
|
|
|
- steps:
|
|
|
- - name: Deploy to GitHub Pages
|
|
|
- id: deployment
|
|
|
- uses: actions/deploy-pages@v4
|