Skip to content

Commit

Permalink
More debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tteixeira authored Jan 19, 2024
1 parent 9d15aa4 commit 683bbe0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/postbuild-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,32 @@ jobs:
GIBBERISH: ${{ secrets.GIBBERISH }}
- run: npm install
- run: npm run export
- run: node ./scripts/build-search-index.js
- run: node ./scripts/build-search-index.js "${{ secrets.ALGOLIA_SECRET }}"
env:
ALGOLIA_SECRET: ${{ secrets.ALGOLIA_SECRET }}
# build-sitemap:
# runs-on: ubuntu-latest
# name: Build sitemap
GIBBERISH: ${{ secrets.GIBBERISH }}
build-sitemap:
runs-on: ubuntu-latest
name: Build sitemap

# steps:
# - name: Checkout the repo
# uses: actions/checkout@v3
steps:
- name: Checkout the repo
uses: actions/checkout@v3

# - name: Setup node, build the site, and generate the sitemap
# id: sitemap
# uses: actions/setup-node@v3
# with:
# node-version: "20"
# - run: npm install
# - run: npm run export
# - run: npm run sitemap
- name: Setup node, build the site, and generate the sitemap
id: sitemap
uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm install
- run: npm run export
- run: npm run sitemap

# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v3
# with:
# title: "Automated sitemap update"
# body: >
# Sitemap updated by the [generate-sitemap](https://github.com/cicirello/generate-sitemap)
# GitHub action. Automated pull-request generated by the
# [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action.
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: "Automated sitemap update"
body: >
Sitemap updated by the [generate-sitemap](https://github.com/cicirello/generate-sitemap)
GitHub action. Automated pull-request generated by the
[create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action.
4 changes: 4 additions & 0 deletions scripts/build-search-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ function getAllFilesInDirectory(articleDirectory, files) {
"XNXFGO6BQ1",
process.env.ALGOLIA_SECRET,
);
console.log("Gibberish", process.env.GIBBERISH, process.env.GIBBERISH == "GIBBERISH")
console.log("Algolia", process.env.ALGOLIA_SECRET)
console.log("CLI args", process.argv)

const index = client.initIndex("documentation");
const tmp_index = client.initIndex("documentation_tmp");

Expand Down

0 comments on commit 683bbe0

Please sign in to comment.