ソースを参照

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 }}