зеркало из https://github.com/github/catalyst.git
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
This commit is contained in:
Родитель
8b5c9174c2
Коммит
70852ee65f
|
@ -10,27 +10,27 @@ jobs:
|
|||
name: Build Docs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the project
|
||||
uses: actions/checkout@v2
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- name: Use Node.js 13.11.0
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 13.11.0
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
- name: Build Docs
|
||||
run: npm run build:docs:reference
|
||||
- name: Commit & Push Docs Data
|
||||
run: |
|
||||
git config --local user.email "actions@github.com"
|
||||
git config --local user.name "Actions Auto Build"
|
||||
git add docs/_data/reference.json
|
||||
git commit -m "docs: compile reference.json" || true
|
||||
git push --force origin HEAD:refs/heads/docs
|
||||
- name: Checkout the project
|
||||
uses: actions/checkout@v2
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- name: Use Node.js 13.11.0
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 13.11.0
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
- name: Build Docs
|
||||
run: npm run build:docs:reference
|
||||
- name: Commit & Push Docs Data
|
||||
run: |
|
||||
git config --local user.email "actions@github.com"
|
||||
git config --local user.name "Actions Auto Build"
|
||||
git add -f docs/_data/reference.json
|
||||
git commit -m "docs: compile reference.json" || true
|
||||
git push --force origin HEAD:refs/heads/docs
|
||||
|
|
|
@ -3,4 +3,5 @@ _site
|
|||
*.tsbuildinfo
|
||||
lib/
|
||||
.jekyll-cache
|
||||
.lighthouseci
|
||||
.lighthouseci
|
||||
docs/_data/reference.json
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче