diff --git a/.github/workflows/algolia-indexing.yml b/.github/workflows/algolia-indexing.yml deleted file mode 100644 index 173d58c..0000000 --- a/.github/workflows/algolia-indexing.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -name: Search Indexing -on: - workflow_dispatch: - inputs: - mode: - description: 'Type of indexing. "index" to push to Algolia, "console" for dry run.' - required: true - default: "index" - type: choice - options: - - console - - index - -jobs: - build-and-index: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node v18 for Yarn v4 - uses: actions/setup-node@v3 - with: - node-version: "18.19.0" # Current LTS version - - - name: Enable Corepack for Yarn - run: corepack enable - - - name: Install Dependencies - run: yarn install - env: - YARN_ENABLE_IMMUTABLE_INSTALLS: false - - - name: Build site - run: yarn build - - env: - NODE_OPTIONS: "--max_old_space_size=8192" - PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build' - REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO_OWNER: ${{ github.repository_owner }} - REPO_NAME: ${{ github.event.repository.name }} - REPO_BRANCH: ${{ github.ref_name }} - GATSBY_ALGOLIA_APPLICATION_ID: ${{ secrets.AIO_ALGOLIA_APPLICATION_ID }} - GATSBY_ALGOLIA_SEARCH_API_KEY: ${{ secrets.AIO_ALGOLIA_SEARCH_API_KEY }} - ALGOLIA_WRITE_API_KEY: ${{ secrets.AIO_ALGOLIA_WRITE_API_KEY }} - ALGOLIA_INDEXATION_MODE: ${{ github.event.inputs.mode || 'index' }} - GATSBY_ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME || github.event.repository.name }} - GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }} - GATSBY_SITE_DOMAIN_URL: https://developer.adobe.com diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8a7d6e7..f89dc0d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,10 +35,10 @@ jobs: exclude_subfolder: ${{ github.event.inputs.excludeSubfolder }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get pathPrefix - uses: actions/github-script@v6 + uses: actions/github-script@v7 id: get_path_prefix with: script: | @@ -84,7 +84,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node v20 for Yarn v3 uses: actions/setup-node@v3 @@ -94,17 +94,8 @@ jobs: - name: Enable Corepack for Yarn v3 run: corepack enable - - name: Install Yarn v3 - uses: borales/actions-yarn@v3 - with: - cmd: set version stable - - name: Install Dependencies - uses: borales/actions-yarn@v3 - env: - YARN_ENABLE_IMMUTABLE_INSTALLS: false - with: - cmd: install + run: yarn install - name: Gatsby Cache uses: actions/cache@v3 @@ -118,14 +109,10 @@ jobs: - name: Clean Cache if: needs.set-state.outputs.clean_cache == 'true' - uses: borales/actions-yarn@v3 - with: - cmd: clean + run: yarn clean - name: Build site - uses: borales/actions-yarn@v3 - with: - cmd: build + run: yarn build env: PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build' PATH_PREFIX: ${{ needs.set-state.outputs.path_prefix }} @@ -198,17 +185,8 @@ jobs: - name: Enable Corepack for Yarn v3 run: corepack enable - - name: Install Yarn v3 - uses: borales/actions-yarn@v3 - with: - cmd: set version stable - - name: Install Dependencies - uses: borales/actions-yarn@v3 - env: - YARN_ENABLE_IMMUTABLE_INSTALLS: false - with: - cmd: install + run: yarn install - name: Gatsby Cache uses: actions/cache@v3 @@ -222,14 +200,10 @@ jobs: - name: Clean Cache if: needs.set-state.outputs.clean_cache == 'true' - uses: borales/actions-yarn@v3 - with: - cmd: clean + run: yarn clean - name: Build site - uses: borales/actions-yarn@v3 - with: - cmd: build + run: yarn build env: PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build' PATH_PREFIX: ${{ needs.set-state.outputs.path_prefix }} diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 115c3d0..a9eb4b1 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -65,25 +65,12 @@ jobs: - name: Enable Corepack for Yarn v3 run: corepack enable - - name: Install Yarn v3 - uses: borales/actions-yarn@v3 - with: - cmd: set version stable - - name: Install dependencies - uses: borales/actions-yarn@v3 - env: - YARN_ENABLE_IMMUTABLE_INSTALLS: false - with: - cmd: install + run: yarn install - name: Check internal links - uses: borales/actions-yarn@v3 - with: - cmd: test:links + run: yarn test:links - name: Build site if: ${{ success() }} - uses: borales/actions-yarn@v3 - with: - cmd: build + run: yarn build