Skip to content

Commit eaff252

Browse files
committed
ci: update workflow config.
1 parent 88b0f3e commit eaff252

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/DevHub/6476452351" title="DevHub for macOS">
30+
<img alt="DevHub 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: "DevHub"
41+
site: "DevHub {{version:${{ steps.create_tag.outputs.version }}}}"
2142
description: A feature-rich offline application, is meticulously crafted to support developers in their daily tasks while ensuring the utmost security of their data
2243
keywords: DevHub,Offline app,Developer,tools,Advanced debugging,Testing,utilities,Feature-rich,Coding,Toolkit
2344
favicon: assets/logo.png

0 commit comments

Comments
 (0)