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
|
lfs: true
|
||||||
show-progress: true
|
show-progress: true
|
||||||
path: suo
|
path: suo
|
||||||
- name: Fetch suo
|
- name: Fetch suo binary
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
POST_URL=https://git.sapphirus.org/api/packages/private/generic/suo/latest/suo
|
POST_URL=https://git.sapphirus.org/api/packages/private/generic/suo/latest/suo
|
||||||
|
|
||||||
echo "::group:: Fetching suo"
|
echo "::group:: Fetching suo"
|
||||||
cd suo
|
mkdir ./bin/ && curl --user $USER_NAME:$USER_TOKEN $POST_URL --output ./bin/suo && chmod +x ./bin/suo
|
||||||
curl --user $USER_NAME:$USER_TOKEN $POST_URL${file##$SRC_DIR} --output suo && chmod +x suo
|
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
- name: Generate website
|
- name: Generate website
|
||||||
shell: bash
|
run: ./bin/suo && ./suo/dist/assets.sh ./output ./suo
|
||||||
run: |
|
|
||||||
cd suo
|
|
||||||
./suo ../input/ ../output && ./dist/assets.sh ../output
|
|
||||||
- name: Package website
|
- name: Package website
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd output
|
|
||||||
echo "::group:: Packaging website"
|
echo "::group:: Packaging website"
|
||||||
|
cd output
|
||||||
tar acvf website.tar.zst *
|
tar acvf website.tar.zst *
|
||||||
echo "$(git rev-parse --short HEAD)$(git -C ../suo rev-parse --short HEAD)" > website.ver
|
echo "$(git rev-parse --short HEAD)$(git -C ../suo rev-parse --short HEAD)" > website.ver
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
Loading…
Reference in a new issue