Rename plugin to "Obsidian Publish to Discourse", update version to 1.0.0, enhance GitHub Actions workflow for file checks during release, and improve API key description in settings.

This commit is contained in:
wood chen 2024-12-21 14:32:17 +08:00
parent 34d46415cb
commit f1238c3600
4 changed files with 14 additions and 4 deletions

View File

@ -27,8 +27,18 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
tag="${GITHUB_REF#refs/tags/}" tag="${GITHUB_REF#refs/tags/}"
files=()
for file in main.js manifest.json; do
if [ -f "$file" ]; then
files+=("$file")
else
echo "Warning: $file not found"
exit 1
fi
done
gh release create "$tag" \ gh release create "$tag" \
--title="$tag" \ --title="$tag" \
--draft \ --draft \
main.js manifest.json "${files[@]}"

View File

@ -1,4 +1,4 @@
# Discourse Sync Plugin # Obsidian Publish to Discourse
## How to use ## How to use

View File

@ -41,7 +41,7 @@ export class DiscourseSyncSettingsTab extends PluginSettingTab {
new Setting(containerEl) new Setting(containerEl)
.setName("API 密钥") .setName("API 密钥")
.setDesc("用户创建的 API 密钥") .setDesc("在'/admin/api/keys'中创建的 API 密钥")
.addText((text) => .addText((text) =>
text text
.setPlaceholder("api_key") .setPlaceholder("api_key")

View File

@ -1,3 +1,3 @@
{ {
"1.0.0": "0.15.0" "1.0.0": "1.0.0"
} }