From e971ec6e27cebe88f2f7ec891f7b50ce01d50845 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sun, 30 Oct 2022 23:20:02 +0100 Subject: [PATCH] split packages so i can add multiple files? TODO ask how i can upload multiple files to a package --- .woodpecker.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 2c35b03..dc6f6e7 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,15 +5,17 @@ pipeline: commands: - apk update && apk add curl - mkdir dist - - curl --user ci:$TOKEN -X DELETE https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/${CI_COMMIT_BRANCH} || true - pandoc metadata.txt README.md -o dist/${CI_REPO_NAME}.html -s --toc --css=style.css --self-contained --metadata title=$CI_PROJECT_NAME - - curl --user ci:$TOKEN --upload-file dist/${CI_REPO_NAME}.html https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/${CI_COMMIT_BRANCH}/${CI_REPO_NAME}.html + - curl --user ci:$TOKEN -X DELETE https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/html || true + - curl --user ci:$TOKEN --upload-file dist/${CI_REPO_NAME}.html https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/html/${CI_REPO_NAME}.html - pandoc metadata.txt README.md -o dist/${CI_REPO_NAME}.epub -s --toc --css=style.css - - curl --user ci:$TOKEN --upload-file dist/${CI_REPO_NAME}.epub https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/${CI_COMMIT_BRANCH}/${CI_REPO_NAME}.epub + - curl --user ci:$TOKEN -X DELETE https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/epub || true + - curl --user ci:$TOKEN --upload-file dist/${CI_REPO_NAME}.epub https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/epub/${CI_REPO_NAME}.epub - echo $PATH - which xelatex - xelatex --shell-escape -interaction=nonstopmode main.tex - - curl --user ci:$TOKEN --upload-file main.pdf https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/${CI_COMMIT_BRANCH}/${CI_REPO_NAME}.pdf + - curl --user ci:$TOKEN -X DELETE https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/pdf || true + - curl --user ci:$TOKEN --upload-file main.pdf https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/pdf/${CI_REPO_NAME}.pdf secrets: [ token ] when: - event: push