Update CI
This commit is contained in:
Родитель
f969ec1008
Коммит
4debf08700
|
@ -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 }}
|
||||
|
|
Загрузка…
Ссылка в новой задаче