瀏覽代碼

Fixes the branch matching

Eugene Dementiev 6 年之前
父節點
當前提交
01eb012647
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      .github/workflows/main.yml

+ 3 - 3
.github/workflows/main.yml

@@ -1,10 +1,10 @@
 name: CI
 
-on: [push]
+on:
+  push: {branches: ["*", "*/*"]}
 
 jobs:
   build:
-
     runs-on: ubuntu-latest
 
     steps:
@@ -20,7 +20,7 @@ jobs:
         architecture: 'x64'
     - run: mkdir -p dist/api/v1/ && python .github/api.py
     - name: deploy
-      if: github.ref == 'master'
+      if: github.ref == 'refs/heads/master'
       uses: peaceiris/actions-gh-pages@v2.1.0
       env:
         ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}