commit 62f99b8a6fc0b0fc472fc93e5b2adceeffa5c6c4 Author: Jean-Marie Mineau Date: Wed Mar 27 14:49:04 2024 +0100 init diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml new file mode 100644 index 0000000..af29bd7 --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -0,0 +1,33 @@ +on: [push] +jobs: + test_checkout: + runs-on: debian + steps: + - run: apt-get update -y && apt-get install -y git curl + - run: | + curl -L -O https://github.com/gohugoio/hugo/releases/download/v0.124.1/hugo_extended_0.124.1_linux-amd64.deb + dpkg -i ./hugo_extended_0.124.1_linux-amd64.deb + - run: | + TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64) + mkdir -p "${GITHUB_WORKSPACE}" + cd "${GITHUB_WORKSPACE}" + git init + git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" + git -c http.extraHeader="Authorization: Basic ${TOKEN}" fetch origin "${GITHUB_SHA}" + git checkout "${GITHUB_SHA}" + git submodule update --init --recursive + - run: | + cd "${GITHUB_WORKSPACE}" + hugo + - run: | + cd dist + git init + git config user.email "ci_action@example.com" + git config user.name "CI" + git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" + TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64) + git -c http.extraHeader="Authorization: Basic ${TOKEN}" push origin -d pages || true + git checkout -b pages + git add * + git commit -m "gen pages" + git -c http.extraHeader="Authorization: Basic ${TOKEN}" push -u origin pages diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5154615 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/ananke"] + path = themes/ananke + url = https://github.com/theNewDynamic/gohugo-theme-ananke.git diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/content/posts/test.md b/content/posts/test.md new file mode 100644 index 0000000..9825959 --- /dev/null +++ b/content/posts/test.md @@ -0,0 +1,11 @@ ++++ +title = 'Test' +date = 2024-03-27T13:45:31Z +draft = true ++++ + +## Test + +Lorem **ipsum** dolor, *sit* amet. + +Visit the [git page](https://git.mineau.eu/histausse/tst_hugo_action). diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..186400c --- /dev/null +++ b/hugo.toml @@ -0,0 +1,4 @@ +baseURL = 'https://histausse.page.mineau.eu/tst_hugo_action/' +languageCode = 'en-us' +title = 'My New Hugo Site' +theme = 'ananke' diff --git a/themes/ananke b/themes/ananke new file mode 160000 index 0000000..91df000 --- /dev/null +++ b/themes/ananke @@ -0,0 +1 @@ +Subproject commit 91df000ca82769a7578df81fa142d1a18e446bc0