FWDekker / intellij-randomness

IntelliJ plugin for inserting random numbers, UUIDs, names, IP addresses, and much more
https://plugins.jetbrains.com/plugin/9836-randomness
MIT License
45 stars 7 forks source link

Manually update gh-pages at next release #506

Closed FWDekker closed 9 months ago

FWDekker commented 9 months ago

The cd.yml workflow introduced in #505 will not automatically import old docs correctly. Some manual work is needed before publishing the release on GitHub:

If the up-to-date gh-pages is in the folder /tmp/gh-pages/ and the main branch is in /tmp/main/, then run

PDIR="/tmp/gh-pages/"
MDIR="/tmp/main/"

cd "$PDIR"
mkdir older/
mv gh-pages/v* older/

cd "$MDIR"
./gradlew -Pdokka.pagesDir="$PDIR"
cd -

rm -rf "$PDIR/"*
mv "$MDIR/build/dokka/html/"* "$PDIR/"

and commit and push the changes in /tmp/gh-pages/ to the gh-pages branch.

FWDekker commented 9 months ago

Fixed in d8515cb.