From 98005eb6381e5a9f8fcd4da25427222a75db1502 Mon Sep 17 00:00:00 2001 From: Alan Poulain Date: Tue, 21 Feb 2023 18:11:17 +0100 Subject: [PATCH] ci: fix deploy (openssl legacy) --- .github/workflows/cd.yml | 76 ++++++++++++++++++++-------------------- .github/workflows/ci.yml | 4 +-- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 065f7e14a7a..42fe2fca9f3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -3,46 +3,46 @@ name: Deploy Website on: push: branches: - - main - - '*.*' + - main + - '*.*' jobs: deploy: runs-on: ubuntu-latest steps: - - - name: Checkout the website - uses: actions/checkout@v2 - with: - repository: api-platform/website - ref: main - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Install deps - run: yarn install - - - name: Retrieve docs - run: bin/retrieve-documentation - - - name: Build website - env: - GITHUB_KEY: ${{ secrets.CONTRIBUTORS_GITHUB_TOKEN }} - run: yarn gatsby build - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public - cname: api-platform.com + - name: Checkout the website + uses: actions/checkout@v3 + with: + repository: api-platform/website + ref: main + + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT" + + - uses: actions/cache@v3 + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install deps + run: yarn install + + - name: Retrieve docs + run: bin/retrieve-documentation + + - name: Build website + env: + GITHUB_KEY: ${{ secrets.CONTRIBUTORS_GITHUB_TOKEN }} + NODE_OPTIONS: --openssl-legacy-provider + run: yarn gatsby build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public + cname: api-platform.com diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bbf07cd1fa..a7901d1e280 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -24,7 +24,7 @@ jobs: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}