File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ run-name: Run the deploy command
3
3
on :
4
4
push :
5
5
branches : [main]
6
+
6
7
jobs :
7
8
deployment :
8
9
runs-on : ubuntu-latest
@@ -17,15 +18,20 @@ jobs:
17
18
run : chmod +x extract.sh
18
19
- name : Run the script
19
20
run : ./extract.sh
20
- - name : Setup Node & deploy
21
+ - name : Setup Node
21
22
uses : actions/setup-node@v3
22
23
with :
23
24
node-version : " 20"
25
+ - name : Install dependencies
26
+ run : npm install
27
+ - name : Format code
28
+ run : npm run format
29
+ - name : Configure Git
24
30
run : |
25
- npm install
26
- npm run format
27
31
git config --global user.name "${{ github.actor }}"
28
32
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
33
+ - name : Commit and push changes
34
+ run : |
29
35
git add .
30
36
git commit -m "docs: deploy site"
31
37
git push
Original file line number Diff line number Diff line change @@ -11,20 +11,5 @@ echo layout: home >> "$output_file"
11
11
echo --- >> " $output_file "
12
12
echo " " >> " $output_file "
13
13
14
- # Copy portfolio table
15
- grep -P ' ^\|.*\|$' " $input_file " >> " $output_file "
16
- # Input and output files
17
- input_file=" README.md"
18
- output_file=" ./docs/portfolio.md"
19
-
20
- # Clear the output file
21
- > " $output_file "
22
-
23
- # set vitepress layout
24
- echo --- >> " $output_file "
25
- echo layout: home >> " $output_file "
26
- echo --- >> " $output_file "
27
- echo " " >> " $output_file "
28
-
29
14
# Copy portfolio table
30
15
grep -P ' ^\|.*\|$' " $input_file " >> " $output_file "
You can’t perform that action at this time.
0 commit comments