From a78ea032e6ca693be7974f3c2c71038b8efbcf89 Mon Sep 17 00:00:00 2001 From: lostinlight Date: Sat, 22 Jan 2022 13:22:38 +0300 Subject: [PATCH] Fix Woodpecker config (11) --- .woodpecker.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e5c3f46..87b92e9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,15 +4,16 @@ pipeline: build: image: node:12.22.1 commands: - - npm install gulp -g - - npm install hexo-cli -g - - test -e package.json && npm install - - gulp build --cwd ./themes/starter - - hexo generate - - find -maxdepth 1 ! -name .git ! -name .domains ! -name public ! -name . -exec rm -rf {} \; - # This only copies non-hidden files; those whose names start with period WOULD NOT be copied - - mv public/* . - - rm -rf public + - true + # - npm install gulp -g + # - npm install hexo-cli -g + # - test -e package.json && npm install + # - gulp build --cwd ./themes/starter + # - hexo generate + # - find -maxdepth 1 ! -name .git ! -name .domains ! -name public ! -name . -exec rm -rf {} \; + # # This only copies non-hidden files; those whose names start with period WOULD NOT be copied + # - mv public/* . + # - rm -rf public when: branch: include: [ main ] @@ -24,11 +25,12 @@ pipeline: commands: - apk add git openssh # configure git - - git checkout -b pages - - git config --global user.email "nonexistent@example.com" - - git config --global user.name "Codeberg CI" - - git remote set-url origin https://"$${ACCESS_TOKEN}"@codeberg.org/fediverse/fediparty.git + # - git checkout -b pages + # - git config --global user.email "nonexistent@example.com" + # - git config --global user.name "Codeberg CI" + # - git remote set-url origin https://"$${ACCESS_TOKEN}"@codeberg.org/fediverse/fediparty.git + - git clone https://"$${ACCESS_TOKEN}"@codeberg.org/fediverse/fediparty.git pages # deploy changes - - git add -A - - git commit -m "Woodpecker build ${CI_COMMIT_SHA}" - - git push --force origin pages + # - git add -A + # - git commit -m "Woodpecker build ${CI_COMMIT_SHA}" + # - git push --force origin pages