Restructure pipeline
All checks were successful
Generate Website / Generate Website (push) Successful in 16s

This commit is contained in:
Xavier Moffett 2024-12-14 05:11:58 -05:00
parent 12bc33f619
commit fa5215f5ef
Signed by: Sapphirus
GPG key ID: A6C061B2CEA1A7AC

View file

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