Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 28, 2024
1 parent 7dc0eea commit 71cbd98
Showing 1 changed file with 44 additions and 5 deletions.
49 changes: 44 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ jobs:
head-ref: ${{steps.create_tag.outputs.version}}
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: Create Release
uses: ncipollo/release-action@v1
- name: Generate Changelog
uses: jaywcjlove/create-tag-action@main
if: steps.create_tag.outputs.successful
with:
name: ${{ steps.create_tag.outputs.version }}
tag: ${{ steps.create_tag.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{steps.create_tag.outputs.version}}
release: true
body: |
[![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)
Expand Down Expand Up @@ -82,6 +81,46 @@ jobs:
http://localhost:9881/
```
# - name: Create Release
# uses: ncipollo/release-action@v1
# if: steps.create_tag.outputs.successful
# with:
# name: ${{ steps.create_tag.outputs.version }}
# tag: ${{ steps.create_tag.outputs.version }}
# token: ${{ secrets.GITHUB_TOKEN }}
# body: |
# [![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)

# Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/awesome-mac/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html

# Comparing Changes: ${{ steps.changelog.outputs.compareurl }}

# ${{ steps.changelog.outputs.changelog }}

# ```bash
# npm i awesome-mac@${{steps.create_tag.outputs.versionNumber}}
# # dist/awesome-mac.json
# # dist/awesome-mac.zh.json
# ```

# ## Docker

# ```bash
# docker pull wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
# ```

# ```bash
# docker run --name awesome-mac --rm -d -p 9881:3000 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
# # Or
# docker run --name awesome-mac -itd -p 9881:3000 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}
# ```

# Visit the following URL in your browser

# ```bash
# http://localhost:9881/
# ```

- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

Expand Down

0 comments on commit 71cbd98

Please sign in to comment.