From ebdb711caffa649ace2b2f5e0e5dfed361f99ea9 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 5 May 2025 23:53:21 +0700 Subject: [PATCH] feat: remove SourceHut --- .build.yml | 14 -------------- .github/workflows/mirror.yml | 20 -------------------- 2 files changed, 34 deletions(-) delete mode 100644 .build.yml diff --git a/.build.yml b/.build.yml deleted file mode 100644 index be86755..0000000 --- a/.build.yml +++ /dev/null @@ -1,14 +0,0 @@ -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 5927bce..ba13162 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -117,23 +117,3 @@ jobs: # Push all tags git push codeberg --tags --force - - - name: Mirror to SourceHut - run: | - # Add SourceHut remote - git remote add sourcehut git@git.sr.ht:~miti99/miti99.srht.site - - # Fetch from SourceHut to get information about the default branch - git fetch sourcehut - - # Get list of local branches - LOCAL_BRANCHES=$(git branch | grep -v "origin/" | tr -d '* ' | tr '\n' ' ') - - # Push each local branch individually to SourceHut - for branch in $LOCAL_BRANCHES; do - # Push branch to SourceHut - git push sourcehut $branch:$branch --force - done - - # Push all tags - git push sourcehut --tags --force