aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-13 14:33:42 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-13 14:33:42 +0800
commit031009f3d3dbdcede18b99ad627123d70e442d49 (patch)
treecbba40819e4e9047b0a2625cef4bf5f359dd09ab /.github/workflows
parent8f07fe048474b0a33209b97896105dd8030fdf8a (diff)
downloadDropOut-031009f3d3dbdcede18b99ad627123d70e442d49.tar.gz
DropOut-031009f3d3dbdcede18b99ad627123d70e442d49.zip
feat: enhance release workflow with changelog generation and release creation steps
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml43
1 files changed, 34 insertions, 9 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c38eb97..58b5593 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -15,7 +15,38 @@ env:
CARGO_TERM_COLOR: always
jobs:
+ promote-release:
+ name: Create Release & Changelog
+ runs-on: ubuntu-latest
+ outputs:
+ release_id: ${{ steps.create_release.outputs.id }}
+ release_body: ${{ steps.changelog.outputs.changes }}
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Generate CHANGELOG
+ id: changelog
+ uses: requarks/changelog-action@v1
+ with:
+ token: ${{ github.token }}
+ tag: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}
+ changelogFilePath: CHANGELOG.md
+
+ - name: Create Release
+ id: create_release
+ uses: softprops/action-gh-release@v1
+ with:
+ tag_name: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}
+ name: "DropOut ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}"
+ body: ${{ steps.changelog.outputs.changes }}
+ draft: true
+ prerelease: false
+
build-tauri:
+ name: Build & Upload (${{ matrix.platform }})
+ needs: promote-release
permissions:
contents: write
strategy:
@@ -24,9 +55,7 @@ jobs:
include:
- platform: "ubuntu-22.04"
args: ""
- - platform: "macos-14" # Intel
- args: "--target x86_64-apple-darwin"
- - platform: "macos-latest" # M1/M2/M3
+ - platform: "macos-14" # M1/M2/M3 (Apple Silicon)
args: "--target aarch64-apple-darwin"
- platform: "windows-latest"
args: ""
@@ -44,16 +73,12 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
- targets: ${{ matrix.platform == 'macos-14' && 'x86_64-apple-darwin' || matrix.platform == 'macos-latest' && 'aarch64-apple-darwin' || '' }}
+ targets: ${{ matrix.platform == 'macos-14' && 'aarch64-apple-darwin' || '' }}
- name: Build Tauri App
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
- tagName: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}
- releaseName: "DropOut v__VERSION__"
- releaseBody: "See the assets to download this version and install."
- releaseDraft: true
- prerelease: false
+ releaseId: ${{ needs.promote-release.outputs.release_id }}
args: ${{ matrix.args }}