mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-04-27 04:57:16 +03:00
Compare commits
5 Commits
ffae9f59e4
...
1917099f70
Author | SHA1 | Date | |
---|---|---|---|
1917099f70 | |||
69fe73f4e2 | |||
044e95c4f4 | |||
1a813268c0 | |||
566646b9e7 |
22
.github/workflows/hugo.yml
vendored
22
.github/workflows/hugo.yml
vendored
@ -1,10 +1,11 @@
|
|||||||
# Sample workflow for building and deploying a Hugo site to GitHub Pages
|
# Sample workflow for building and deploying a Hugo site to GitHub Pages
|
||||||
name: Deploy Hugo site to Pages & Neocities
|
name: Deploy Hugo site to Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -31,7 +32,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
HUGO_VERSION: 0.136.5
|
HUGO_VERSION: 0.141.0
|
||||||
steps:
|
steps:
|
||||||
- name: Install Hugo CLI
|
- name: Install Hugo CLI
|
||||||
run: |
|
run: |
|
||||||
@ -40,28 +41,31 @@ jobs:
|
|||||||
- name: Install Dart Sass
|
- name: Install Dart Sass
|
||||||
run: sudo snap install dart-sass
|
run: sudo snap install dart-sass
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
fetch-depth: 0
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
id: pages
|
id: pages
|
||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v5
|
||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
||||||
- name: Build with Hugo
|
- name: Build with Hugo
|
||||||
env:
|
env:
|
||||||
# For maximum backward compatibility with Hugo modules
|
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
|
||||||
HUGO_ENVIRONMENT: production
|
HUGO_ENVIRONMENT: production
|
||||||
HUGO_ENV: production
|
TZ: America/Los_Angeles
|
||||||
run: |
|
run: |
|
||||||
hugo \
|
hugo \
|
||||||
|
--gc \
|
||||||
|
--minify \
|
||||||
--baseURL "${{ steps.pages.outputs.base_url }}/"
|
--baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||||
- name: Change color
|
- name: Change color
|
||||||
run: sed -i 's/peachpuff/rebeccapurple/g' public/css/main.*.css
|
run: sed -i 's/peachpuff/rebeccapurple/g' public/css/main.*.css
|
||||||
- name: Change URI
|
- name: Change URI
|
||||||
run: find public -type f -exec sed -i 's/\/\/fruw.org/\/\/fruworg.github.io/g' {} +
|
run: find public -type f -exec sed -i 's/\/\/fruw.org/\/\/fruworg.github.io/g' {} +
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v2
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./public
|
path: ./public
|
||||||
|
|
||||||
@ -84,7 +88,7 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: .
|
path: .
|
||||||
- name: Create directory
|
- name: Create directory
|
||||||
|
@ -67,6 +67,6 @@ url = "/index.xml"
|
|||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "webring"
|
name = "dn42"
|
||||||
url = "/webring.html"
|
url = "https://dn42.fruw.org"
|
||||||
weight = 4
|
weight = 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user