Skip to content

 This project is dedicated to collecting high-quality macOS software and organizing them systematically by different categories for easy search and use.

chore: update .github/workflows/ci.yml

jaywcjlove0941b17adbf9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6707af6e..57c915e3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,4 +20,43 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: ./dist
\ No newline at end of file
+ publish_dir: ./dist
+
+ - name: Create Tag
+ id: create_tag
+ uses: jaywcjlove/[email protected]
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ package-path: ./package.json
+
+ - name: Generate Changelog
+ id: changelog
+ uses: jaywcjlove/[email protected]
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ head-ref: ${{steps.create_tag.outputs.version}}
+ filter-author: (小弟调调™|Renovate Bot)
+ filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
+
+ - 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: |
+ [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/awesome-mac@${{steps.changelog.outputs.version}}/file/README.md)
+
+ ${{ steps.changelog.outputs.compareurl }}
+
+ ${{ steps.changelog.outputs.changelog }}
+
+ ```bash
+ npm i awesome-mac
+ # dist/awesome-mac.json
+ # dist/awesome-mac.zh.json
+ ```
+
+ - run: npm install @jsdevtools/npm-publish -g
+ - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json