修复一段时间后无法连接到数据库的问题;记录中增加‘备注’字段 #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package release | |
on: | |
push: | |
tags: | |
- v** | |
env: | |
IS_CI: true | |
permissions: | |
contents: write | |
jobs: | |
package: | |
name: Package release | |
strategy: | |
matrix: | |
os: [ macos-latest, windows-latest, ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'gradle' | |
- uses: gradle/actions/setup-gradle@v3 | |
- name: Package distributables for ${{ runner.os }} | |
run: gradle packageDistributionForCurrentOS --info --stacktrace --warning-mode all | |
- name: Upload logs | |
uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: logs-${{ runner.os }} | |
path: 'build\compose\logs\**' | |
retention-days: 3 | |
- name: Upload package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: distributions-${{ matrix.os }} | |
retention-days: 1 | |
path: 'build/compose/binaries/main/*/StopBonus-*.*' | |
# files: | | |
# build/compose/binaries/main/app/HashHash-${{ runner.os }}-standalone.zip | |
# build/compose/binaries/main/dmg/* | |
# build/compose/binaries/main/exe/* | |
# build/compose/binaries/main/msi/* | |
# build/compose/binaries/main/deb/* | |
# build/compose/binaries/main/rpm/* | |
# build/compose/jars/* | |
create-release: | |
name: Create release | |
runs-on: ubuntu-latest | |
needs: package | |
steps: | |
# 下载文件 | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: distributions-* | |
merge-multiple: true | |
path: distributions | |
# Create gitHub release | |
- name: Create Github Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: 'distributions/*/StopBonus-*.*' | |
# files: StopBonus-${{ github.ref_name }}.exe | |
token: ${{ secrets.PUSH_TOKEN }} | |
generate_release_notes: true | |