mirror of
https://github.com/woodchen-ink/obsidian-publish-to-discourse.git
synced 2025-07-17 13:23:33 +08:00
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:
parent
34d46415cb
commit
f1238c3600
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -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[@]}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Discourse Sync Plugin
|
# Obsidian Publish to Discourse
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
|
@ -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")
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"1.0.0": "0.15.0"
|
"1.0.0": "1.0.0"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user