Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamura196 committed Apr 17, 2024
1 parent ff94b6e commit 4093453
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
id: read-config
run: |
version=$(grep 'version' ./config/theme.ini | cut -d '=' -f2 | tr -d ' "' | tr -d "\r")
id=$(grep 'id' ./config/theme.ini | cut -d '=' -f2 | tr -d ' "' | tr -d "\r")
echo "::set-output name=version::$version"
echo "::set-output name=name::IiifViewers"
echo "::set-output name=name::$id"
- name: Prepare release
run: |
Expand Down
3 changes: 2 additions & 1 deletion config/theme.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[info]
name = "Bootstrap 5"
version = "4.0.1"
version = "4.0.2"
author = "Satoru Nakamura"
description = "Omeka S theme based on bootstrap 5 - https://getbootstrap.com/"
theme_link = "https://github.com/ldasjp8/Omeka-S-theme-Bootstrap5"
author_link = "https://researchmap.jp/nakamura.satoru?lang=en"
omeka_version_constraint = "^4.0.0"
id="Bootstrap5"

[config]
;elements.accent_color.name = "accent_color"
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CONFIG_FILE="config/theme.ini"

# バージョン情報の読み取り
version=$(grep '^version\s*=' $CONFIG_FILE | cut -d '=' -f2 | tr -d ' "' | tr -d "\r")
name="IiifViewers"
id=$(grep '^id\s*=' $CONFIG_FILE | cut -d '=' -f2 | tr -d ' "' | tr -d "\r")

# タグとリリースメッセージ
tag="$version"
Expand All @@ -18,4 +18,4 @@ git tag -a $tag -m "$release_message"
git push origin $tag

# GitHubリリースの作成
gh release create $tag --title "$name-$version" --notes "Released version $version."
gh release create $tag --title "$id-$version" --notes "Released version $version."

0 comments on commit 4093453

Please sign in to comment.