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
|
&& dpkg -i ${{ runner.temp }}/hugo.deb
|
||||||
- name: Install Dart Sass
|
- name: Install Dart Sass
|
||||||
run: npm i -g sass
|
run: npm i -g sass
|
||||||
- run: sass --version
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Build with Hugo
|
- name: Build with hugo
|
||||||
env:
|
env:
|
||||||
# For maximum backward compatibility with Hugo modules
|
# For maximum backward compatibility with Hugo modules
|
||||||
HUGO_ENVIRONMENT: production
|
HUGO_ENVIRONMENT: production
|
||||||
|
@ -37,12 +36,13 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: public
|
ref: public
|
||||||
- run: rm -rf *
|
- name: Clean current files in directory
|
||||||
|
run: find -delete
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hugo-output
|
name: hugo-output
|
||||||
- run: apt update && apt install unzip -y && unzip hugo-output/public.zip -d . && mv ./public/* ./
|
- name: Unzip hugo output
|
||||||
- run: rm -rf hugo-output && rm -rf public && ls -l
|
run: apt update && apt install unzip -y && unzip hugo-output/public.zip -d . && mv ./public/* ./
|
||||||
- run: |
|
- run: |
|
||||||
git config user.name "forgejo-actions"
|
git config user.name "forgejo-actions"
|
||||||
git config user.email ""
|
git config user.email ""
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,4 +12,3 @@ hugo.linux
|
||||||
|
|
||||||
# Temporary lock file while building
|
# Temporary lock file while building
|
||||||
/.hugo_build.lock
|
/.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