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::"