diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index b23a93b..39787d5 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -1,5 +1,9 @@ name: Build Docs on: [ push, pull_request ] +permissions: + contents: read + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source jobs: build: name: Build docs @@ -10,16 +14,13 @@ jobs: - name: Generate docs with LDoc uses: lunarmodules/ldoc@v1.5.0 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: - path: "doc/" + path: "doc" # Deployment job deploy: 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 environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a20c26..7573ac5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,7 +41,7 @@ - 调整龙的目标,让龙不会急迫转弯 - 腿迈步的时候给身体拖拽 - 可以使用鼠标把龙到处拖动 -- 文档 +- 编写了 skeleton 的文档 ## [1.1.0] - 2024-03-25