CHANGE build, ADD gitignore to static
This commit is contained in:
parent
a5ee8f34e4
commit
c89ebb915c
3 changed files with 10 additions and 6 deletions
|
@ -13,11 +13,10 @@ jobs:
|
|||
&& dpkg -i ${{ runner.temp }}/hugo.deb
|
||||
- name: Install Dart Sass
|
||||
run: npm i -g sass
|
||||
- run: sass --version
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Build with Hugo
|
||||
- name: Build with hugo
|
||||
env:
|
||||
# For maximum backward compatibility with Hugo modules
|
||||
HUGO_ENVIRONMENT: production
|
||||
|
@ -37,12 +36,13 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: public
|
||||
- run: rm -rf *
|
||||
- name: Clean current files in directory
|
||||
run: find -delete
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: hugo-output
|
||||
- run: apt update && apt install unzip -y && unzip hugo-output/public.zip -d . && mv ./public/* ./
|
||||
- run: rm -rf hugo-output && rm -rf public && ls -l
|
||||
- name: Unzip hugo output
|
||||
run: apt update && apt install unzip -y && unzip hugo-output/public.zip -d . && mv ./public/* ./
|
||||
- run: |
|
||||
git config user.name "forgejo-actions"
|
||||
git config user.email ""
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,4 +12,3 @@ hugo.linux
|
|||
|
||||
# Temporary lock file while building
|
||||
/.hugo_build.lock
|
||||
|
||||
|
|
5
static/.gitignore
vendored
Normal file
5
static/.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Generated files by hugo
|
||||
/public/
|
||||
|
||||
# Generated files by forgejo actions
|
||||
/hugo-output/
|
Loading…
Reference in a new issue