mirror of
https://github.com/jaywcjlove/awesome-mac.git
synced 2026-01-12 23:07:06 +08:00
ci: update workflows config.
This commit is contained in:
49
.github/workflows/ci.yml
vendored
49
.github/workflows/ci.yml
vendored
@@ -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: |
|
||||
[](https://jaywcjlove.github.io/#/sponsor) [](https://uiwjs.github.io/npm-unpkg/#/pkg/awesome-mac@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](https://hub.docker.com/r/wcjiang/awesome-mac)
|
||||
|
||||
@@ -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: |
|
||||
# [](https://jaywcjlove.github.io/#/sponsor) [](https://uiwjs.github.io/npm-unpkg/#/pkg/awesome-mac@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [](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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user