Build #208181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Set build image var | |
run: echo "ImageVersion=$ImageVersion" >> $GITHUB_ENV | |
- uses: actions/checkout@v4 | |
- name: Checkout Specs | |
uses: actions/checkout@v4 | |
with: | |
repository: CocoaPods/Specs | |
path: _specs | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- uses: actions/cache@v4 | |
with: | |
path: vendor/bundle | |
key: gems@v1-${{ runner.os }}-${{ env.ImageVersion }}-${{ hashFiles('Gemfile.lock') }} | |
restore-keys: | | |
gems@v1-${{ runner.os }}-${{ env.ImageVersion }}- | |
- name: Bundler | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs=4 | |
- name: Build indices | |
run: | | |
Scripts/build.sh | |
- name: Deploy to Pages | |
if: github.event_name == 'schedule' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_specs/_site | |
cname: cdn.cocoapods.org | |
force_orphan: true | |
user_name: CocoaPodsBot | |
user_email: [email protected] | |
- name: Tell Honeybadger.io | |
if: github.event_name == 'schedule' | |
env: | |
HONEYBADGER_TOKEN: ${{ secrets.HONEYBADGER_TOKEN }} | |
run: | | |
curl https://api.honeybadger.io/v1/check_in/${HONEYBADGER_TOKEN} | |
- uses: actions/upload-artifact@v4 | |
if: github.event_name != 'schedule' | |
with: | |
name: site | |
path: ./_specs/_site/* | |
on: | |
push: | |
repository_dispatch: | |
types: | |
- cronjob | |
schedule: | |
- cron: '*/5 * * * *' | |