remove duplicate script and fix action (#449)
* add prettier ignore file
* format file and update config
* update home config
* add prettierignore config
* 🤖 update auto-deploy action
* make script file executable
* bump checkout action to version 4
* remove duplicate script and fix action
This commit is contained in:
1 parent
89e6f0b2f2
commit
5dba1f5cf9
2 files changed
+9
-18
No files matched your search
@@ -3,6 +3,7 @@ run-name: Run the deploy command
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deployment:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -17,15 +18,20 @@ jobs:
|
||||
run: chmod +x extract.sh
|
||||
- name: Run the script
|
||||
run: ./extract.sh
|
||||
- name: Setup Node & deploy
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "20"
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Format code
|
||||
run: npm run format
|
||||
- name: Configure Git
|
||||
run: |
|
||||
npm install
|
||||
npm run format
|
||||
git config --global user.name "${{ github.actor }}"
|
||||
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git add .
|
||||
git commit -m "docs: deploy site"
|
||||
git push
|
||||
-15
@@ -13,18 +13,3 @@ echo "" >> "$output_file"
|
||||
|
||||
# Copy portfolio table
|
||||
grep -P '^\|.*\|$' "$input_file" >> "$output_file"
|
||||
# Input and output files
|
||||
input_file="README.md"
|
||||
output_file="./docs/portfolio.md"
|
||||
|
||||
# Clear the output file
|
||||
> "$output_file"
|
||||
|
||||
# set vitepress layout
|
||||
echo --- >> "$output_file"
|
||||
echo layout: home >> "$output_file"
|
||||
echo --- >> "$output_file"
|
||||
echo "" >> "$output_file"
|
||||
|
||||
# Copy portfolio table
|
||||
grep -P '^\|.*\|$' "$input_file" >> "$output_file"
|
||||
Reference in new issue
Block a user