Merge pull request #120 from Flipper-Zero/Deploy-wiki-script-improvements

Rewrite images path to absolute in wiki repo
This commit is contained in:
Pavel Zhovner 2020-09-16 15:47:48 +03:00 committed by GitHub
commit dd091e43ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -63,6 +63,12 @@ if [ ! -r "$tmp_dir/Home.md" ]; then
rsync -q -a "$GITHUB_WORKSPACE/README.md" "$tmp_dir/Home.md"
fi
debug "Rewriting images path to absolute"
(
cd "$tmp_dir" || exit 1
find . -type f -exec sed -Ei 's@([ (])([^( ]+)(\/wiki_static\/.+?\.(png|jpe?g|svg)[ \)])@\1https://github.com/Flipper-Zero/flipperzero-firmware-community/raw/master\3@' {} \;
)
debug "Committing and pushing changes"
(
cd "$tmp_dir" || exit 1

View file

@ -4,6 +4,8 @@ name: Publish the wiki
on:
push:
branches: [ master ]
paths:
- "wiki"
jobs: