mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 21:34:07 +00:00
Merge pull request #99 from xiaoyifang/feature/github-action-release
github: add release changelog
This commit is contained in:
commit
5259be69e0
15
.github/workflows/macos-6.2.yml
vendored
15
.github/workflows/macos-6.2.yml
vendored
|
@ -74,6 +74,13 @@ jobs:
|
||||||
mv ${targetName}.app ./tmp
|
mv ${targetName}.app ./tmp
|
||||||
# --background "installer_background.png"
|
# --background "installer_background.png"
|
||||||
create-dmg --volname "${targetName} Installer" --volicon "icons/macicon.icns" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "${targetName}.app" 200 190 --hide-extension "${targetName}.app" --app-drop-link 600 185 --skip-jenkins "${targetName}.dmg" tmp/
|
create-dmg --volname "${targetName} Installer" --volicon "icons/macicon.icns" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "${targetName}.app" 200 190 --hide-extension "${targetName}.app" --app-drop-link 600 185 --skip-jenkins "${targetName}.dmg" tmp/
|
||||||
|
- name: Generate changelog
|
||||||
|
if: ${{!env.prerelease}}
|
||||||
|
id: changelog1
|
||||||
|
uses: metcalfc/changelog-generator@v3.0.0
|
||||||
|
with:
|
||||||
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set outputs
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
|
@ -82,6 +89,11 @@ jobs:
|
||||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||||
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
||||||
|
|
||||||
|
- name: changelog
|
||||||
|
if: $${{env.prerelease}}
|
||||||
|
id: changelog2
|
||||||
|
run: |
|
||||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||||
echo "previousTag : $previousTag"
|
echo "previousTag : $previousTag"
|
||||||
|
|
||||||
|
@ -119,4 +131,5 @@ jobs:
|
||||||
auto built by github action. use on your on risk:-)
|
auto built by github action. use on your on risk:-)
|
||||||
|
|
||||||
CHANGES:
|
CHANGES:
|
||||||
${{ steps.vars.outputs.COMMIT_SUMMARY }}
|
${{ steps.changelog1.outputs.changelog }}
|
||||||
|
${{ steps.changelog2.outputs.COMMIT_SUMMARY }}
|
||||||
|
|
15
.github/workflows/macos.yml
vendored
15
.github/workflows/macos.yml
vendored
|
@ -75,7 +75,12 @@ jobs:
|
||||||
mv ${targetName}.app ./tmp
|
mv ${targetName}.app ./tmp
|
||||||
# --background "installer_background.png"
|
# --background "installer_background.png"
|
||||||
create-dmg --volname "${targetName} Installer" --volicon "icons/macicon.icns" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "${targetName}.app" 200 190 --hide-extension "${targetName}.app" --app-drop-link 600 185 --skip-jenkins "${targetName}.dmg" tmp/
|
create-dmg --volname "${targetName} Installer" --volicon "icons/macicon.icns" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "${targetName}.app" 200 190 --hide-extension "${targetName}.app" --app-drop-link 600 185 --skip-jenkins "${targetName}.dmg" tmp/
|
||||||
|
- name: Generate changelog
|
||||||
|
if: ${{!env.prerelease}}
|
||||||
|
id: changelog1
|
||||||
|
uses: metcalfc/changelog-generator@v3.0.0
|
||||||
|
with:
|
||||||
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set outputs
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
|
@ -85,6 +90,11 @@ jobs:
|
||||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||||
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
||||||
|
|
||||||
|
- name: changelog
|
||||||
|
if: $${{env.prerelease}}
|
||||||
|
id: changelog2
|
||||||
|
run: |
|
||||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||||
echo "previousTag : $previousTag"
|
echo "previousTag : $previousTag"
|
||||||
|
|
||||||
|
@ -122,4 +132,5 @@ jobs:
|
||||||
auto built by github action. use on your on risk:-)
|
auto built by github action. use on your on risk:-)
|
||||||
|
|
||||||
CHANGES:
|
CHANGES:
|
||||||
${{ steps.vars.outputs.COMMIT_SUMMARY }}
|
${{ steps.changelog1.outputs.changelog }}
|
||||||
|
${{ steps.changelog2.outputs.COMMIT_SUMMARY }}
|
||||||
|
|
16
.github/workflows/ubuntu-6.2.yml
vendored
16
.github/workflows/ubuntu-6.2.yml
vendored
|
@ -80,6 +80,13 @@ jobs:
|
||||||
# with:
|
# with:
|
||||||
# name: AppImage
|
# name: AppImage
|
||||||
# path: './*.AppImage*'
|
# path: './*.AppImage*'
|
||||||
|
- name: Generate changelog
|
||||||
|
if: ${{!env.prerelease}}
|
||||||
|
id: changelog1
|
||||||
|
uses: metcalfc/changelog-generator@v3.0.0
|
||||||
|
with:
|
||||||
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set outputs
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
|
@ -87,8 +94,12 @@ jobs:
|
||||||
echo "::set-output name=release_date::$(date +'%Y%m%d')"
|
echo "::set-output name=release_date::$(date +'%Y%m%d')"
|
||||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||||
echo "::set-output name=appname::$(ls *.AppImage*)"
|
|
||||||
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
||||||
|
|
||||||
|
- name: changelog
|
||||||
|
if: $${{env.prerelease}}
|
||||||
|
id: changelog2
|
||||||
|
run: |
|
||||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||||
echo "previousTag : $previousTag"
|
echo "previousTag : $previousTag"
|
||||||
|
|
||||||
|
@ -126,4 +137,5 @@ jobs:
|
||||||
auto built by github action. use on your on risk:-)
|
auto built by github action. use on your on risk:-)
|
||||||
|
|
||||||
CHANGES:
|
CHANGES:
|
||||||
${{ steps.vars.outputs.COMMIT_SUMMARY }}
|
${{ steps.changelog1.outputs.changelog }}
|
||||||
|
${{ steps.changelog2.outputs.COMMIT_SUMMARY }}
|
||||||
|
|
16
.github/workflows/ubuntu.yml
vendored
16
.github/workflows/ubuntu.yml
vendored
|
@ -77,6 +77,13 @@ jobs:
|
||||||
chmod a+x linuxdeploy-x86_64.AppImage
|
chmod a+x linuxdeploy-x86_64.AppImage
|
||||||
./linuxdeploy-x86_64.AppImage --appdir appdir --output appimage --plugin qt -i redist/icons/goldendict.png -d redist/org.goldendict.GoldenDict.desktop
|
./linuxdeploy-x86_64.AppImage --appdir appdir --output appimage --plugin qt -i redist/icons/goldendict.png -d redist/org.goldendict.GoldenDict.desktop
|
||||||
|
|
||||||
|
- name: Generate changelog
|
||||||
|
if: ${{!env.prerelease}}
|
||||||
|
id: changelog1
|
||||||
|
uses: metcalfc/changelog-generator@v3.0.0
|
||||||
|
with:
|
||||||
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set outputs
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
|
@ -84,8 +91,12 @@ jobs:
|
||||||
echo "::set-output name=release_date::$(date +'%Y%m%d')"
|
echo "::set-output name=release_date::$(date +'%Y%m%d')"
|
||||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||||
echo "::set-output name=appname::$(ls *.AppImage*)"
|
|
||||||
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
||||||
|
|
||||||
|
- name: changelog
|
||||||
|
if: $${{env.prerelease}}
|
||||||
|
id: changelog2
|
||||||
|
run: |
|
||||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||||
echo "previousTag : $previousTag"
|
echo "previousTag : $previousTag"
|
||||||
|
|
||||||
|
@ -123,4 +134,5 @@ jobs:
|
||||||
auto built by github action. use on your on risk:-)
|
auto built by github action. use on your on risk:-)
|
||||||
|
|
||||||
CHANGES:
|
CHANGES:
|
||||||
${{ steps.vars.outputs.COMMIT_SUMMARY }}
|
${{ steps.changelog1.outputs.changelog }}
|
||||||
|
${{ steps.changelog2.outputs.COMMIT_SUMMARY }}
|
||||||
|
|
18
.github/workflows/windows-6.2.yml
vendored
18
.github/workflows/windows-6.2.yml
vendored
|
@ -52,6 +52,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Generate changelog
|
||||||
|
if: ${{!env.prerelease}}
|
||||||
|
id: changelog1
|
||||||
|
uses: metcalfc/changelog-generator@v3.0.0
|
||||||
|
with:
|
||||||
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set outputs
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -61,6 +68,12 @@ jobs:
|
||||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||||
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
||||||
|
|
||||||
|
- name: changelog
|
||||||
|
if: $${{env.prerelease}}
|
||||||
|
id: changelog2
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||||
echo "previousTag : $previousTag"
|
echo "previousTag : $previousTag"
|
||||||
|
|
||||||
|
@ -128,6 +141,11 @@ jobs:
|
||||||
Qt6.X(Universal Build)
|
Qt6.X(Universal Build)
|
||||||
Qt5.15.2(Intel Kind)
|
Qt5.15.2(Intel Kind)
|
||||||
auto built by github action. use on your on risk:-)
|
auto built by github action. use on your on risk:-)
|
||||||
|
|
||||||
|
CHANGES:
|
||||||
|
${{ steps.changelog1.outputs.changelog }}
|
||||||
|
${{ steps.changelog2.outputs.COMMIT_SUMMARY }}
|
||||||
|
|
||||||
- name: upload goldendict.exe only
|
- name: upload goldendict.exe only
|
||||||
# if: startsWith(github.event.ref, 'refs/tags/')
|
# if: startsWith(github.event.ref, 'refs/tags/')
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
|
16
.github/workflows/windows.yml
vendored
16
.github/workflows/windows.yml
vendored
|
@ -54,6 +54,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Generate changelog
|
||||||
|
if: ${{!env.prerelease}}
|
||||||
|
id: changelog1
|
||||||
|
uses: metcalfc/changelog-generator@v3.0.0
|
||||||
|
with:
|
||||||
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set outputs
|
- name: Set outputs
|
||||||
id: vars
|
id: vars
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -63,6 +70,12 @@ jobs:
|
||||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||||
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
echo "::set-output name=release_hm::$(date +'%y%m%d')"
|
||||||
|
|
||||||
|
- name: changelog
|
||||||
|
if: $${{env.prerelease}}
|
||||||
|
id: changelog2
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||||
echo "previousTag : $previousTag"
|
echo "previousTag : $previousTag"
|
||||||
|
|
||||||
|
@ -127,7 +140,8 @@ jobs:
|
||||||
auto built by github action. use on your on risk:-)
|
auto built by github action. use on your on risk:-)
|
||||||
|
|
||||||
CHANGES:
|
CHANGES:
|
||||||
${{ steps.vars.outputs.COMMIT_SUMMARY }}
|
${{ steps.changelog1.outputs.changelog }}
|
||||||
|
${{ steps.changelog2.outputs.COMMIT_SUMMARY }}
|
||||||
- name: upload goldendict.exe only
|
- name: upload goldendict.exe only
|
||||||
# if: startsWith(github.event.ref, 'refs/tags/')
|
# if: startsWith(github.event.ref, 'refs/tags/')
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
|
Loading…
Reference in a new issue