-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 906 Bytes
/
main.yml
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
name: Build README and Site
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: |
npm install
- name: Generate snippets.json [using codes folder]
run: |
npm run gen-snip-file
- name: Update README [using snippets.json]
run: |-
npm run gen-index
- name: Update Site [using snippets.json]
run: |-
npm run gen-site
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4.16.0
with:
commit_message: "Chore: build snippet, index, site"
commit_user_name: theSoberSobber
commit_user_email: akshatshrivastava0010@gmail.com
commit_author: theSoberSobber