generated from AdobeDocs/dev-site-documentation-template
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #916 from AdobeDocs/adobedocs-upgrade
Upgrade to latest theme with partial indexing and index content on deploy.
- Loading branch information
Showing
5 changed files
with
3,596 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,46 @@ | ||
*.log | ||
.idea | ||
|
||
# OS and IDE generated files # | ||
############################## | ||
.DS_Store | ||
target/ | ||
PdfUtility.iml | ||
.vscode | ||
.history | ||
.idea | ||
.editorconfig | ||
|
||
# npm yarn | ||
node_modules | ||
package.lock | ||
yarn-error.log | ||
.pnp.* | ||
.yarn/* | ||
|
||
# keep in repo | ||
!.gitignore | ||
!.yarn.lock | ||
!.yarnrc.yml | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
# gatsby files | ||
.env | ||
.cache | ||
public | ||
|
||
# cypress | ||
cypress/videos | ||
cypress/screenshots | ||
|
||
# lerna | ||
lerna-debug.log | ||
|
||
.settings | ||
.project | ||
.classpath | ||
# local actions | ||
.actrc | ||
.secrets | ||
local-test.yml | ||
|
||
output/ | ||
#idea | ||
*.iml | ||
allure-results/ | ||
# yalc | ||
.yalc | ||
yalc.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.