Skip to content

chore(deps): update actions/cache action to v4 (#18) #71

chore(deps): update actions/cache action to v4 (#18)

chore(deps): update actions/cache action to v4 (#18) #71

Workflow file for this run

name: Documentation
on:
release:
types: [published]
push:
branches: [main]
jobs:
deploy_docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Cache gems
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-flow-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-flow
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Install Sourcekitten
run: brew install sourcekitten
- name: Generate Documentation
run: |
./bin/docs.sh
- name: Fix Invalid URLs
run: |
cd docs
touch .nojekyll
- name: Commit files
run: |
cd docs
git init
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Deploying Updated Jazzy Docs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
directory: docs
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true