diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index e3bfcdd..72f943d 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -12,6 +12,16 @@ permissions: jobs: deploy-gh-pages: runs-on: ubuntu-latest + + # 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 + + # Deploy to the github-pages environment + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout uses: actions/checkout@v3 @@ -38,9 +48,11 @@ jobs: run: |- pnpm run build - - name: 部署文档 + - name: 上传构建产物 uses: actions/upload-artifact@v4 with: - # 这是文档部署到的分支名称 - # branch: gh-pages - path: "./dist" + path: dist + + - name: 部署至GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/pages/posts/binfe-2020-zh.md b/pages/posts/binfe-2020-zh.md index e578f4f..915e0f3 100644 --- a/pages/posts/binfe-2020-zh.md +++ b/pages/posts/binfe-2020-zh.md @@ -13,7 +13,7 @@ duration: 25min > > Slides: [中文 ver.](https://antfu.me/talks/2020-09-26) | [English ver.](https://antfu.me/talks/2020-09-26/en) -Hello 大家好,非常感谢丁香园这次的邀请,也非常荣幸能够参与这次的分享。我是第一次做这样的分享,不足之处还请多多指教。 +Hello 大家好,非常感谢丁香园这次的邀请,也非常荣幸能够参与这次的分享。我是第一次做这样的分享不足之处还请多多指教。 我这次分享的主题是 `import { reactive } from 'vue'`,和大家简单聊一聊 Vue 3 的响应式和组合式,以及他们的一些应用。