浏览代码

ci: fix workflow v3 (#4)

LoGin 10 月之前
父节点
当前提交
32d801d4ff
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      .github/workflows/deploy.yml

+ 4 - 3
.github/workflows/deploy.yml

@@ -5,6 +5,7 @@ on:
   pull_request:
     branches: [ "master" ]
 
+
 jobs:
 
   ensure-toolchain:
@@ -40,10 +41,10 @@ jobs:
   build-and-deploy:
     runs-on: ubuntu-latest
     needs: [ensure-toolchain]
-    environment:
-      name: github-pages
+
+    permissions:
+      contents: write
     steps:
-            
       - uses: actions/checkout@v3
 
       - name: Cache dependencies