This repository was archived by the owner on Oct 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.71 KB
/
Copy pathnodejs.yml
File metadata and controls
44 lines (40 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Node.js CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
- run: |
git config --global user.email "p.fongkye@users.noreply.github.com"
git config --global user.name "p.fongkye"
echo "machine github.com login p.fongkye password $GIT_PERSO_TOKEN" > ~/.netrc
npm run deploy
env:
CI: true
GIT_USER: p.fongkye
GIT_PERSO_TOKEN: ${{ secrets.GIT_PERSO_TOKEN }}
- name: Docsearch crawl
id: crawl
uses: ./.github/actions/docsearch-crawl
env:
CONFIG: '{"index_name":"CheatSheets","start_urls":[{"url":"https://pfongkye.github.io/","tags":["docs"]}],"sitemap_urls":["https://pfongkye.github.io/sitemap.xml"],"sitemap_alternate_links":true,"stop_urls":["/help","/users", "/blog"],"selectors":{"lvl0":{"selector":".menu__link--sublist.menu__link--active","global":true,"default_value":"Documentation"},"lvl1":"header h1","lvl2":"article h2","lvl3":"article h3","lvl4":"article h4","lvl5":"article h5","lvl6":"article h6","text":"article p, article li"},"selectors_exclude":[".hash-link"]}'
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
API_KEY: ${{ secrets.ALGOLIA_CRAWL_API_KEY }}
with:
who-to-greet: "PFK"
# Use the output from the `crawl` step
- name: Get the output time
run: echo "The time was ${{ steps.crawl.outputs.time }}"