Skip to content

Commit 65293e0

Browse files
committed
ci: update workflows config.
1 parent ad48a8c commit 65293e0

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,32 @@ jobs:
1313
with:
1414
node-version: 20
1515
registry-url: 'https://registry.npmjs.org'
16+
17+
- name: Create Tag
18+
id: create_tag
19+
uses: jaywcjlove/create-tag-action@main
20+
with:
21+
test: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
22+
23+
- name: Create Released Tag
24+
uses: jaywcjlove/create-tag-action@main
25+
with:
26+
version: ${{ steps.create_tag.outputs.version }}
27+
release: true
28+
body: |
29+
<a target="_blank" href="https://apps.apple.com/app/daybar/6739052447" title="DayBar for macOS">
30+
<img alt="DayBar AppStore" src="https://jaywcjlove.github.io/sb/download/macos.svg" height="51">
31+
</a>
32+
33+
- name: Get latest tag
34+
id: get_latest_tag
35+
run: echo "LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV
36+
1637

1738
- name: Create idoc config.
1839
run: |
1940
cat > idoc.yml << EOF
20-
site: "TextSound Saver"
41+
site: "TextSound Saver {{version:${{ steps.create_tag.outputs.version }}}}"
2142
keywords: TextToSpeech,Speech,TextSoundSaver,TextSound,Sound
2243
favicon: assets/logo.png
2344
logo: ./assets/logo.png

0 commit comments

Comments
 (0)