This commit is contained in:
XhmikosR 2022-07-15 09:31:17 +03:00
Родитель f969ec1008
Коммит 4debf08700
1 изменённых файлов: 9 добавлений и 11 удалений

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