Skip to content

Commit

Permalink
feat: enable automate release when version change
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Jan 24, 2024
1 parent a3db1e8 commit 695b59c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: distributions release

on:
push:
tags:
- 'v*.*.*'
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -47,15 +46,35 @@ jobs:
steps:
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Generate changelog
uses: jaywcjlove/changelog-generator@main
id: changelog
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: out/make/
merge-multiple: true
- name: echo folder
run: ls -R ./
- name: Build Release
uses: jaywcjlove/create-tag-action@main
id: tag_release
with:
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
body: |
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- name: Release App
uses: "marvinpinto/action-automatic-releases@latest"
if: steps.tag_release.outputs.successful
with:
prerelease: false
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "DocKit",
"productName": "DocKit",
"private": true,
"version": "0.0.1",
"version": "0.0.2",
"main": "dist/src/electron/main.js",
"description": "A faster, better and more stable NoSQL desktop tools",
"author": "geekfun <[email protected]>",
Expand Down

0 comments on commit 695b59c

Please sign in to comment.