1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Chore: Website: Include the plugin discovery website on joplinapp.org/ (#9469)

This commit is contained in:
Henry Heino 2023-12-14 02:21:36 -08:00 committed by GitHub
parent 3732d3e360
commit 49cf4d9965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 1 deletions

View File

@ -72,7 +72,6 @@ const config = {
'mobile', 'mobile',
'note_history', 'note_history',
'notifications', 'notifications',
'plugins',
'profiles', 'profiles',
'publish_note', 'publish_note',
'rich_text_editor', 'rich_text_editor',
@ -80,6 +79,11 @@ const config = {
'share_notebook', 'share_notebook',
'subnotebooks', 'subnotebooks',
'terminal', 'terminal',
// Redirect disabled: This URL is now used for the plugin discovery
// website.
// 'plugins',
]; ];
for (const p of oldAppsPages) { for (const p of oldAppsPages) {

View File

@ -58,6 +58,34 @@ Auto-updated using $SCRIPT_NAME" || true
git pull --rebase git pull --rebase
git push git push
# Copy and update the plugin website.
#
# For security, the plugin website is built in a separate job without access to SSH
# keys. This file contains the built output of the other job.
BUILT_PLUGIN_WEBSITE_FILE="$JOPLIN_ROOT_DIR/../plugin-website.tar.gz"
if [ -f "$BUILT_PLUGIN_WEBSITE_FILE" ]; then
cd "$JOPLIN_WEBSITE_ROOT_DIR"
mkdir -p plugins
cd plugins
tar -xzvf "$BUILT_PLUGIN_WEBSITE_FILE"
cd "$JOPLIN_WEBSITE_ROOT_DIR"
git add -A
git commit -m "Updated plugin discovery website
Auto-updated using $SCRIPT_NAME" || true
git pull --rebase
git push
else
echo "Not updating plugin website -- release ($BUILT_PLUGIN_WEBSITE_FILE) not present"
exit 1
fi
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Build and deploy the website # Build and deploy the website
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------