mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2025-02-04 15:10:41 +00:00
Fix Woodpecker config (13)
This commit is contained in:
parent
239698b669
commit
9f07d919a9
|
@ -4,16 +4,11 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: node:12.22.1
|
image: node:12.22.1
|
||||||
commands:
|
commands:
|
||||||
- echo "Carry on please"
|
- npm install gulp -g
|
||||||
# - npm install gulp -g
|
- npm install hexo-cli -g
|
||||||
# - npm install hexo-cli -g
|
- test -e package.json && npm install
|
||||||
# - test -e package.json && npm install
|
- gulp build --cwd ./themes/starter
|
||||||
# - gulp build --cwd ./themes/starter
|
- hexo generate
|
||||||
# - 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:
|
when:
|
||||||
branch:
|
branch:
|
||||||
include: [ main ]
|
include: [ main ]
|
||||||
|
@ -23,14 +18,16 @@ pipeline:
|
||||||
image: alpine
|
image: alpine
|
||||||
secrets: [ access_token ]
|
secrets: [ access_token ]
|
||||||
commands:
|
commands:
|
||||||
- apk add git openssh
|
- apk add git
|
||||||
# configure git
|
# configure git
|
||||||
# - git checkout -b pages
|
- git config --global user.email "nonexistent@example.com"
|
||||||
# - git config --global user.email "nonexistent@example.com"
|
- git config --global user.name "Codeberg CI"
|
||||||
# - 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
|
- git clone https://"$${ACCESS_TOKEN}"@codeberg.org/fediverse/fediparty.git pages
|
||||||
|
- cd pages
|
||||||
|
- git checkout -b pages
|
||||||
|
- mv ../public/* .
|
||||||
|
- mv ../.domains .
|
||||||
# deploy changes
|
# deploy changes
|
||||||
# - git add -A
|
- git add -A
|
||||||
# - git commit -m "Woodpecker build ${CI_COMMIT_SHA}"
|
- git commit -m "Woodpecker build ${CI_COMMIT_SHA}"
|
||||||
# - git push --force origin pages
|
- git push --force origin pages
|
||||||
|
|
Loading…
Reference in a new issue