add(ci): ci to build releases #4
Workflow file for this run
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
name: Build Linux Release | |
on: | |
pull_request: # this is only temporarily for testing the action | |
types: [opened, synchronize, reopened, edited] # this is only temporarily for testing the action | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-linux-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: setup node | |
uses: actions/[email protected] | |
with: | |
node-version: lts/* | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: install dependencies (ubuntu only) | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: install frontend dependencies | |
run: npm install | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Calculate hashes | |
run: | | |
sha256sum src-tauri/target/release/bundle/deb/*.deb > src-tauri/target/release/bundle/deb/SHA256SUM | |
- name: Upload Ubuntu installer | |
uses: actions/[email protected] | |
with: | |
name: build-ubuntu | |
path: src-tauri/target/release/bundle/deb/ | |
retention-days: 5 |