Skip to content

Commit 7cc0b1f

Browse files
committed
build: fix
1 parent ba249ff commit 7cc0b1f

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/actions/build-ubuntu/action.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
name: 'Build for Ubuntu'
2+
inputs:
3+
release-version:
4+
description: 'The release version'
5+
26
runs:
37
using: 'composite'
48
steps:
5-
- name: install dependencies (ubuntu only)
9+
- name: install dependencies
610
run: |
711
sudo apt-get update
812
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
913
shell: bash
1014

15+
- name: bump version in tauri.conf.json
16+
if: ${{ inputs.release-version != '' }}
17+
run: |
18+
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"${{ needs.create-release.outputs.release-version }}\"/g" "src-tauri/tauri.conf.json"
19+
1120
- name: build tauri app
1221
uses: tauri-apps/tauri-action@v0
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1522

1623
- name: Upload binary as artifact
1724
uses: actions/upload-artifact@v3

.github/workflows/release.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ jobs:
9797
- name: install npm dependencies
9898
run: npm install
9999

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

0 commit comments

Comments
 (0)