automatically create release via github action
This commit is contained in:
@@ -3,7 +3,7 @@ name: Build Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
build-linux-docker:
|
||||
@@ -178,3 +178,46 @@ jobs:
|
||||
name: ezbookkeeping-${{ github.ref_name }}-windows-x64
|
||||
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