Skip to content

Commit 71cbd98

Browse files
committed
ci: update workflows config.
1 parent 7dc0eea commit 71cbd98

File tree

1 file changed

+44
-5
lines changed

1 file changed

+44
-5
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ jobs:
4242
head-ref: ${{steps.create_tag.outputs.version}}
4343
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
4444

45-
- name: Create Release
46-
uses: ncipollo/release-action@v1
45+
- name: Generate Changelog
46+
uses: jaywcjlove/create-tag-action@main
4747
if: steps.create_tag.outputs.successful
4848
with:
49-
name: ${{ steps.create_tag.outputs.version }}
50-
tag: ${{ steps.create_tag.outputs.version }}
51-
token: ${{ secrets.GITHUB_TOKEN }}
49+
version: ${{steps.create_tag.outputs.version}}
50+
release: true
5251
body: |
5352
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/awesome-mac@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/awesome-mac?logo=docker)](https://hub.docker.com/r/wcjiang/awesome-mac)
5453
@@ -82,6 +81,46 @@ jobs:
8281
http://localhost:9881/
8382
```
8483
84+
# - name: Create Release
85+
# uses: ncipollo/release-action@v1
86+
# if: steps.create_tag.outputs.successful
87+
# with:
88+
# name: ${{ steps.create_tag.outputs.version }}
89+
# tag: ${{ steps.create_tag.outputs.version }}
90+
# token: ${{ secrets.GITHUB_TOKEN }}
91+
# body: |
92+
# [![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/awesome-mac@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/awesome-mac?logo=docker)](https://hub.docker.com/r/wcjiang/awesome-mac)
93+
94+
# Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/awesome-mac/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
95+
96+
# Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
97+
98+
# ${{ steps.changelog.outputs.changelog }}
99+
100+
# ```bash
101+
# npm i awesome-mac@${{steps.create_tag.outputs.versionNumber}}
102+
# # dist/awesome-mac.json
103+
# # dist/awesome-mac.zh.json
104+
# ```
105+
106+
# ## Docker
107+
108+
# ```bash
109+
# docker pull wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
110+
# ```
111+
112+
# ```bash
113+
# docker run --name awesome-mac --rm -d -p 9881:3000 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
114+
# # Or
115+
# docker run --name awesome-mac -itd -p 9881:3000 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
116+
# ```
117+
118+
# Visit the following URL in your browser
119+
120+
# ```bash
121+
# http://localhost:9881/
122+
# ```
123+
85124
- run: npm install @jsdevtools/npm-publish -g
86125
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
87126

0 commit comments

Comments
 (0)