Skip to content

Commit 70852ee

Browse files
authored
feat: Ignore 'reference.json' (#94)
* feat: Ignore 'reference.json' * fix: Add ignored file using '-f' Docs: https://git-scm.com/docs/git-add#Documentation/git-add.txt--f
1 parent 8b5c917 commit 70852ee

3 files changed

Lines changed: 26 additions & 1479 deletions

File tree

.github/workflows/docs-build.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ jobs:
1010
name: Build Docs
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout the project
14-
uses: actions/checkout@v2
15-
- name: Cache node modules
16-
uses: actions/cache@v1
17-
with:
18-
path: ~/.npm
19-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
20-
restore-keys: |
21-
${{ runner.os }}-node-
22-
- name: Use Node.js 13.11.0
23-
uses: actions/setup-node@v1
24-
with:
25-
node-version: 13.11.0
26-
- name: Install dependencies
27-
run: npm i
28-
- name: Build Docs
29-
run: npm run build:docs:reference
30-
- name: Commit & Push Docs Data
31-
run: |
32-
git config --local user.email "actions@github.com"
33-
git config --local user.name "Actions Auto Build"
34-
git add docs/_data/reference.json
35-
git commit -m "docs: compile reference.json" || true
36-
git push --force origin HEAD:refs/heads/docs
13+
- name: Checkout the project
14+
uses: actions/checkout@v2
15+
- name: Cache node modules
16+
uses: actions/cache@v1
17+
with:
18+
path: ~/.npm
19+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
20+
restore-keys: |
21+
${{ runner.os }}-node-
22+
- name: Use Node.js 13.11.0
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 13.11.0
26+
- name: Install dependencies
27+
run: npm i
28+
- name: Build Docs
29+
run: npm run build:docs:reference
30+
- name: Commit & Push Docs Data
31+
run: |
32+
git config --local user.email "actions@github.com"
33+
git config --local user.name "Actions Auto Build"
34+
git add -f docs/_data/reference.json
35+
git commit -m "docs: compile reference.json" || true
36+
git push --force origin HEAD:refs/heads/docs

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ _site
33
*.tsbuildinfo
44
lib/
55
.jekyll-cache
6-
.lighthouseci
6+
.lighthouseci
7+
docs/_data/reference.json

0 commit comments

Comments
 (0)