diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7dd437e5..3e562342 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,9 +14,9 @@ name: 'CodeQL' on: push: branches: [master] - # pull_request: - # The branches below must be a subset of the branches above - # # branches: [master] + pull_request: + # The branches below must be a subset of the branches above + branches: [master] schedule: - cron: '36 1 * * 2' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c740d0af..b0ac30e2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,6 @@ jobs: - name: Setup Beta if: ${{ github.event_name == 'pull_request' }} run: | - export BETA=true rm -rf docs/beta/ - name: Cleanup build @@ -42,21 +41,14 @@ jobs: npm i -g yarn export DEPLOY=true export BETA=true - echo "$BETA" yarn install - # yarn run lint + yarn run lint version=$(yarn version --patch --no-git-tag-version | grep "New version" | cut -d':' -f 2) yarn build cd bin ./fix-path cd .. - # git config user.name github-actions - # git config user.email github-actions@github.com - # # git config pull.rebase false - # # git pull origin gh-pages - # git add . - # git commit -nm "Release $version" - # git push --force origin gh-pages + - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: