-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from fwqaaq/release_gui
add gui action release
- Loading branch information
Showing
3 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build GUI release | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- v_gui.* | ||
|
||
jobs: | ||
create_release: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changelog_reader.outputs.changes }} | ||
version: ${{ steps.changelog_reader.outputs.VERSION }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get version number | ||
run: | | ||
VERSION=${{github.ref_name}} | ||
echo "VERSION=${VERSION/v_gui\./}" >> $GITHUB_ENV | ||
- name: Changelog Reader | ||
id: changelog_reader | ||
uses: mindsers/[email protected] | ||
with: | ||
path: './crates/gui/CHANGELOG.md' | ||
version: ${{ env.VERSION }} | ||
|
||
build_seam: | ||
needs: create_release | ||
strategy: | ||
matrix: | ||
platform: [macos-latest, ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
cache-dependency-path: 'crates/gui/yarn.lock' | ||
- name: Install Rust stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | ||
- name: install frontend dependencies | ||
run: | | ||
cd crates/gui | ||
yarn install --frozen-lockfile | ||
- uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
projectPath: 'crates/gui' | ||
tagName: ${{ needs.create_release.outputs.version }} | ||
releaseName: 'Seam ${{ needs.create_release.outputs.version }}' | ||
releaseBody: '${{ needs.create_release.outputs.changes }}' | ||
releaseDraft: false | ||
prerelease: false |
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