docs: add v1.0.0 release notes and package naming
Build Packages / Test (push) Has been cancelled
Build Packages / Build macOS package (push) Has been cancelled
Build Packages / Build Linux package (push) Has been cancelled
Build Packages / Build Windows package (push) Has been cancelled
Build Packages / Publish GitHub Release (push) Has been cancelled
Build Packages / Test (push) Has been cancelled
Build Packages / Build macOS package (push) Has been cancelled
Build Packages / Build Linux package (push) Has been cancelled
Build Packages / Build Windows package (push) Has been cancelled
Build Packages / Publish GitHub Release (push) Has been cancelled
This commit is contained in:
@@ -44,14 +44,17 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- name: Windows
|
||||
platform: Windows
|
||||
goos: windows
|
||||
extension: .exe
|
||||
archive: zip
|
||||
- name: Linux
|
||||
platform: Linux
|
||||
goos: linux
|
||||
extension: ''
|
||||
archive: tar.gz
|
||||
- name: macOS
|
||||
platform: macOS
|
||||
goos: darwin
|
||||
extension: ''
|
||||
archive: tar.gz
|
||||
@@ -79,8 +82,8 @@ jobs:
|
||||
CGO_ENABLED: 0
|
||||
run: |
|
||||
set -euo pipefail
|
||||
package_name="home-vue-go-${GOOS}-amd64"
|
||||
binary_name="${package_name}${{ matrix.extension }}"
|
||||
package_name="Home-Vue-Go_${{ matrix.platform }}"
|
||||
binary_name="Home-Vue-Go${{ matrix.extension }}"
|
||||
go build -trimpath -buildvcs=false -ldflags="-s -w" -o "${binary_name}" .
|
||||
mkdir package
|
||||
cp "${binary_name}" README.md LICENSE package/
|
||||
@@ -92,8 +95,8 @@ jobs:
|
||||
- name: Upload package artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: package-${{ matrix.goos }}
|
||||
path: home-vue-go-${{ matrix.goos }}-amd64.${{ matrix.archive }}
|
||||
name: Home-Vue-Go_${{ matrix.platform }}
|
||||
path: Home-Vue-Go_${{ matrix.platform }}.${{ matrix.archive }}
|
||||
if-no-files-found: error
|
||||
|
||||
release:
|
||||
@@ -104,13 +107,28 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Select release notes
|
||||
id: notes
|
||||
shell: bash
|
||||
run: |
|
||||
notes_file=".github/release-notes/${GITHUB_REF_NAME}.md"
|
||||
if [ -f "${notes_file}" ]; then
|
||||
echo "path=${notes_file}" >> "${GITHUB_OUTPUT}"
|
||||
else
|
||||
echo "path=" >> "${GITHUB_OUTPUT}"
|
||||
fi
|
||||
- name: Download package artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: package-*
|
||||
pattern: Home-Vue-Go_*
|
||||
path: release
|
||||
merge-multiple: true
|
||||
- name: Publish release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: Home-Vue-Go ${{ github.ref_name }}
|
||||
body_path: ${{ steps.notes.outputs.path }}
|
||||
generate_release_notes: ${{ steps.notes.outputs.path == '' }}
|
||||
files: release/*
|
||||
|
||||
Reference in New Issue
Block a user