File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11name : ' Build for Ubuntu'
2+ inputs :
3+ release-version :
4+ description : ' The release version'
5+
26runs :
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
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments