-
Notifications
You must be signed in to change notification settings - Fork 94
47 lines (38 loc) · 1.11 KB
/
Deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Deploy
jobs:
specs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
ruby: [2.6]
name: ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout git
uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
if: ${{ matrix.ruby != 'system' }}
with:
ruby-version: ${{ matrix.ruby }}
- name: Update git submodules
run: git submodule update --init
- name: Configure git
run: |
git config --global user.email "[email protected]"
git config --global user.name "CocoaPods Bot"
- name: Run bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3 --without debugging documentation
- name: Run rake bootstrap
run: rake bootstrap
- name: Deploy
run: |
git remote set-url origin "https://${GH_TOKEN}@github.com/CocoaPods/guides.cocoapods.org.git"
bundle exec rake deploy
on:
push:
branches:
- "master"