CHANGE build, ADD gitignore to static
Some checks failed
build-to-pages / build (push) Successful in 14s
build-to-pages / push (push) Failing after 7s

This commit is contained in:
Hoernschen 2023-10-28 22:01:27 +02:00
parent a5ee8f34e4
commit c89ebb915c
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
3 changed files with 10 additions and 6 deletions

View file

@ -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
View file

@ -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
View file

@ -0,0 +1,5 @@
# Generated files by hugo
/public/
# Generated files by forgejo actions
/hugo-output/