12 - uses: actions/checkout@v2
14 persist-credentials: false
16 # https://github.com/actions/cache/blob/master/examples.md#node---yarn
17 - name: "Cache: Get yarn cache directory path"
18 id: yarn-cache-dir-path
19 run: echo "::set-output name=dir::$(yarn cache dir)"
21 - name: "Cache: Set up yarn cache"
22 uses: actions/cache@v2
25 path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
26 key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28 ${{ runner.os }}-yarn-
30 # https://github.com/actions/cache/blob/master/examples.md#ruby---bundler
31 - name: "Cache: Set up bundler cache"
32 uses: actions/cache@v2
35 key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
37 ${{ runner.os }}-gems-
40 uses: actions/setup-node@v1
41 with: { node-version: '12.x' }
44 uses: actions/setup-ruby@v1
45 with: { ruby-version: '2.7.1' }
47 - name: Setup dependencies
49 yarn --frozen-lockfile
50 bundle config path vendor/bundle
51 bundle install --jobs 4 --retry 3
55 - name: Deploy to gh-pages
56 uses: JamesIves/github-pages-deploy-action@releases/v3
58 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}