action: output new syntax

This commit is contained in:
YiFang Xiao 2023-08-13 19:44:31 +08:00
parent 2d4b6b3918
commit fce9bec4f2
4 changed files with 18 additions and 10 deletions

View file

@ -123,7 +123,8 @@ jobs:
echo "release_time=$(date +'%H%M%S')" >> $GITHUB_OUTPUT
echo "release_time_clock=$(date +'%H:%M:%S')" >> $GITHUB_OUTPUT
echo "release_hm=$(date +'%y%m%d')" >> $GITHUB_OUTPUT
echo "appname=$(ls *.AppImage*)" >> $GITHUB_OUTPUT
appname=$(ls *.AppImage* -1|head -n1)
echo "appname=$appname" >> $GITHUB_OUTPUT
- name: "Build Changelog"
id: build_changelog

View file

@ -111,7 +111,8 @@ jobs:
echo "release_time=$(date +'%H%M%S')" >> $GITHUB_OUTPUT
echo "release_time_clock=$(date +'%H:%M:%S')" >> $GITHUB_OUTPUT
echo "release_hm=$(date +'%y%m%d')" >> $GITHUB_OUTPUT
echo "appname=$(ls *.AppImage*)" >> $GITHUB_OUTPUT
appname=$(ls *.AppImage* -1|head -n1)
echo "appname=$appname" >> $GITHUB_OUTPUT
- name: "Build Changelog"
id: build_changelog

View file

@ -170,10 +170,11 @@ jobs:
- name: package
id: package
env:
archiveName: GoldenDict-Windows.${{ steps.vars.outputs.sha_short }}-${{ steps.vars.outputs.release_time }}
shell: bash
run: |
echo "packageName=${env:archiveName}" >> $GITHUB_OUTPUT
packageName=GoldenDict-Windows.${{ steps.vars.outputs.sha_short }}-${{ steps.vars.outputs.release_time }}
echo $packageName
echo "packageName=$packageName" >> $GITHUB_OUTPUT
- name: upload goldendict.exe only
uses: svenstaro/upload-release-action@v2

View file

@ -105,16 +105,21 @@ jobs:
echo QTDIR=%Qt5_DIR% >> %GITHUB_ENV%
# 打包
- name: package
id: package
- name: windows ps package
id: package-windows
env:
archiveName: GoldenDict-Windows.${{ steps.vars.outputs.sha_short }}-${{ steps.vars.outputs.release_time }}
msvcArch: ${{ matrix.msvc_arch }}
shell: pwsh
run: |
& .github\scripts\windows-publish.ps1 ${env:archiveName} ${env:targetName}
$name = ${env:archiveName}
echo "packageName=$name" >> $GITHUB_OUTPUT
- name: package
id: package
shell: bash
run: |
packageName=GoldenDict-Windows.${{ steps.vars.outputs.sha_short }}-${{ steps.vars.outputs.release_time }}
echo $packageName
echo "packageName=$packageName" >> $GITHUB_OUTPUT
- name: "Build Changelog"
id: build_changelog