From fa5215f5ef25505f4e485621e99cea9c1bab099e Mon Sep 17 00:00:00 2001 From: Xavier Moffett Date: Sat, 14 Dec 2024 05:11:58 -0500 Subject: [PATCH] Restructure pipeline --- .forgejo/workflows/build.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 7a55857..979a783 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -36,25 +36,21 @@ jobs: lfs: true show-progress: true path: suo - - name: Fetch suo + - name: Fetch suo binary shell: bash run: | POST_URL=https://git.sapphirus.org/api/packages/private/generic/suo/latest/suo - echo "::group:: Fetching suo" - cd suo - curl --user $USER_NAME:$USER_TOKEN $POST_URL${file##$SRC_DIR} --output suo && chmod +x suo + echo "::group:: Fetching suo" + mkdir ./bin/ && curl --user $USER_NAME:$USER_TOKEN $POST_URL --output ./bin/suo && chmod +x ./bin/suo echo "::endgroup::" - name: Generate website - shell: bash - run: | - cd suo - ./suo ../input/ ../output && ./dist/assets.sh ../output + run: ./bin/suo && ./suo/dist/assets.sh ./output ./suo - name: Package website shell: bash run: | - cd output echo "::group:: Packaging website" + cd output tar acvf website.tar.zst * echo "$(git rev-parse --short HEAD)$(git -C ../suo rev-parse --short HEAD)" > website.ver echo "::endgroup::"