optimization for action

This commit is contained in:
XLion 2024-04-02 11:27:46 +08:00 committed by GitHub
parent 439767962d
commit 60b321917f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install Hugo - name: Install Hugo
uses: peaceiris/actions-hugo@v2 uses: peaceiris/actions-hugo@v2
@ -28,8 +28,8 @@ jobs:
- name: Build - name: Build
run: | run: |
sudo apt update -y #sudo apt update
sudo apt install -y git #sudo apt install -y git
git clone https://github.com/matcornic/hugo-theme-learn themes/hugo-theme-learn --depth=1 git clone https://github.com/matcornic/hugo-theme-learn themes/hugo-theme-learn --depth=1
hugo --minify hugo --minify
cd public; tar czf x * cd public; tar czf x *