diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index d5e47d1..79fe6ac 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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 "" diff --git a/.gitignore b/.gitignore index 0299c7e..6fd12db 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,3 @@ hugo.linux # Temporary lock file while building /.hugo_build.lock - diff --git a/static/.gitignore b/static/.gitignore new file mode 100644 index 0000000..ea17112 --- /dev/null +++ b/static/.gitignore @@ -0,0 +1,5 @@ +# Generated files by hugo +/public/ + +# Generated files by forgejo actions +/hugo-output/