mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
automatically create release via github action
This commit is contained in:
@@ -3,7 +3,7 @@ name: Build Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- "v*.*.*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux-docker:
|
build-linux-docker:
|
||||||
@@ -178,3 +178,46 @@ jobs:
|
|||||||
name: ezbookkeeping-${{ github.ref_name }}-windows-x64
|
name: ezbookkeeping-${{ github.ref_name }}-windows-x64
|
||||||
path: ezbookkeeping-v*-windows-x64.zip
|
path: ezbookkeeping-v*-windows-x64.zip
|
||||||
|
|
||||||
|
publish-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- upload-linux-artifact
|
||||||
|
- build-and-upload-windows-package
|
||||||
|
steps:
|
||||||
|
- name: Download linux-amd64 packaged files
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ezbookkeeping-${{ github.ref_name }}-linux-amd64
|
||||||
|
path: ./release-files
|
||||||
|
|
||||||
|
- name: Download linux-arm64 packaged files
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ezbookkeeping-${{ github.ref_name }}-linux-arm64
|
||||||
|
path: ./release-files
|
||||||
|
|
||||||
|
- name: Download linux-armv6 packaged files
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ezbookkeeping-${{ github.ref_name }}-linux-armv6
|
||||||
|
path: ./release-files
|
||||||
|
|
||||||
|
- name: Download linux-armv7 packaged files
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ezbookkeeping-${{ github.ref_name }}-linux-armv7
|
||||||
|
path: ./release-files
|
||||||
|
|
||||||
|
- name: Download windows-x64 packaged files
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ezbookkeeping-${{ github.ref_name }}-windows-x64
|
||||||
|
path: ./release-files
|
||||||
|
|
||||||
|
- name: Publish Release ${{ github.ref_name }}
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
name: ${{ github.ref_name }}
|
||||||
|
tag_name: ${{ github.ref_name }}
|
||||||
|
files: ./release-files/*
|
||||||
|
draft: true
|
||||||
|
|||||||
Reference in New Issue
Block a user