Restructure pipeline
All checks were successful
Generate Website / Generate Website (push) Successful in 16s
All checks were successful
Generate Website / Generate Website (push) Successful in 16s
This commit is contained in:
parent
12bc33f619
commit
fa5215f5ef
1 changed files with 5 additions and 9 deletions
|
@ -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::"
|
||||
|
|
Loading…
Reference in a new issue