From 67d962d707724b2824d51ccfc91293c928627a42 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 3 Oct 2020 16:45:17 +0800 Subject: [PATCH] Fix the bundle cache path for CD hook. --- .github/workflows/pages-deploy.yml.hook | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pages-deploy.yml.hook b/.github/workflows/pages-deploy.yml.hook index cbbcec2..c918595 100644 --- a/.github/workflows/pages-deploy.yml.hook +++ b/.github/workflows/pages-deploy.yml.hook @@ -4,18 +4,21 @@ on: branches: - master paths-ignore: - - '.gitignore' - - 'README.md' - - 'LICENSE' + - .gitignore + - README.md + - LICENSE jobs: continuous-delivery: runs-on: ubuntu-latest + env: + GEMS_PATH: /tmp/bundle + steps: - uses: actions/setup-ruby@v1 with: - ruby-version: '2.6.x' + ruby-version: 2.6.x - name: Install tools run: | @@ -33,14 +36,14 @@ jobs: id: bundle-cache uses: actions/cache@v1 with: - path: vendor/bundle + path: ${{ env.GEMS_PATH }} key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} restore-keys: | ${{ runner.os }}-gems- - name: Bundle config run: | - bundle config path vendor/bundle + bundle config path ${{ env.GEMS_PATH }} - name: Bundle Install if: steps.bundle-cache.outputs.cache-hit != 'true'