diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2d4c80c..30c5fbb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,12 +6,16 @@ on: - master jobs: - deploy: + build: runs-on: ubuntu-latest permissions: pages: write id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - name: 克隆代码 @@ -32,4 +36,5 @@ jobs: path: ./dist - name: 部署分支 + id: deployment uses: actions/deploy-pages@v2