diff options
author | XhmikosR <xhmikosr@gmail.com> | 2022-07-15 09:31:17 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2022-07-15 09:31:17 +0300 |
commit | 4debf08700986d51b40e02930c0d6169d72b9c14 (patch) | |
tree | 6753ff1954353f855acd1aa21e69035f70a9a227 | |
parent | f969ec1008761105c64c7970394b7c8f35bb370b (diff) |
Update CI
-rw-r--r-- | .github/workflows/ci.yml | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac29708..5527edb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,14 @@ name: CI -on: [push, pull_request] +on: + push: + branches-ignore: + - "dependabot/**" + pull_request: + workflow_dispatch: env: - RUBY: 2.7 + RUBY: "2.7" # TODO switch to 3.1 when Cloudflare Pages supports it too jobs: test: @@ -19,12 +24,6 @@ jobs: ruby-version: "${{ env.RUBY }}" bundler-cache: true - - name: Version info - run: | - ruby --version - gem --version - bundle --version - - run: bundle exec jekyll build - run: bundle exec jekyll doctor @@ -33,7 +32,7 @@ jobs: - name: Upload docs uses: actions/upload-artifact@v3 - if: success() && github.repository == 'twbs/bootstrap-expo' && github.ref == 'refs/heads/main' + if: github.repository == 'twbs/bootstrap-expo' && github.ref == 'refs/heads/main' with: name: docs path: ./_site/ @@ -41,7 +40,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: test - if: success() && github.repository == 'twbs/bootstrap-expo' && github.ref == 'refs/heads/main' + if: github.repository == 'twbs/bootstrap-expo' && github.ref == 'refs/heads/main' steps: - name: Clone repository @@ -55,7 +54,6 @@ jobs: - name: Deploy uses: peaceiris/actions-gh-pages@v3 - if: success() with: allow_empty_commit: false github_token: ${{ secrets.GITHUB_TOKEN }} |