From 87605fa401e5157040054993e21191c1d1e39a2f Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 5 May 2025 23:48:16 +0700 Subject: [PATCH] fix: Codeberg & SourceHut --- .build.yml | 14 ++++++++++++++ .github/workflows/mirror.yml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..be86755 --- /dev/null +++ b/.build.yml @@ -0,0 +1,14 @@ +image: alpine/edge +packages: + - hugo + - hut +oauth: pages.sr.ht/PAGES:RW +environment: + site: miti99.srht.site +tasks: +- package: | + cd $site + hugo + tar -C public -cvz . > ../site.tar.gz +- upload: | + hut pages publish -d $site site.tar.gz diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 2718f20..5927bce 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -101,7 +101,7 @@ jobs: - name: Mirror to Codeberg run: | # Add Codeberg remote - git remote add codeberg ssh://git@codeberg.org/miti99/miti99.codeberg.page.git + git remote add codeberg ssh://git@codeberg.org/miti99/pages.git # Fetch from Codeberg to get information about the default branch git fetch codeberg