Work on CI/CD
This commit is contained in:
parent
a53ca307a1
commit
d4bba52b15
1 changed files with 10 additions and 2 deletions
|
@ -10,12 +10,20 @@ jobs:
|
|||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Hugo
|
||||
- name: Cache Hugo binary
|
||||
id: cache-hugo
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: hugo
|
||||
key: ${{ runner.os }}-hugo
|
||||
|
||||
- name: Download Hugo
|
||||
if: steps.cache-hugo.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
curl -L -o hugo_0.140.0_linux-amd64.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.140.0/hugo_0.140.0_linux-amd64.tar.gz
|
||||
tar zxvf hugo_0.140.0_linux-amd64.tar.gz
|
||||
|
||||
- name: Build
|
||||
- name: Build website
|
||||
run: ./hugo
|
||||
|
||||
- name: Upload artifact
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue