Skip to content

Commit

Permalink
build: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickDinh committed Mar 25, 2024
1 parent ba249ff commit 7cc0b1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
13 changes: 10 additions & 3 deletions .github/actions/build-ubuntu/action.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: 'Build for Ubuntu'
inputs:
release-version:
description: 'The release version'

runs:
using: 'composite'
steps:
- name: install dependencies (ubuntu only)
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
shell: bash

- name: bump version in tauri.conf.json
if: ${{ inputs.release-version != '' }}
run: |
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"${{ needs.create-release.outputs.release-version }}\"/g" "src-tauri/tauri.conf.json"
- name: build tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload binary as artifact
uses: actions/upload-artifact@v3
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ jobs:
- name: install npm dependencies
run: npm install

- name: bump version in tauri.conf.json
run: |
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"${{ needs.create-release.outputs.release-version }}\"/g" "src-tauri/tauri.conf.json"
- name: build for ubuntu
if: ${{ runner.os == 'Linux' }}
uses: ./.github/actions/build-ubuntu
with:
release-version: ${{ needs.create-release.outputs.release-version }}

0 comments on commit 7cc0b1f

Please sign in to comment.