add(ci): ci to build releases #1
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: Generate App Installers | |
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-releases: | |
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: Upload Ubuntu installer | |
uses: actions/[email protected] | |
with: | |
name: build-ubuntu | |
path: src-tauri/target/release/bundle/deb/*.deb | |
retention-days: 5 | |
- name: Build Linux Installer | |
run: bash build_linux_installer.sh uplink ${{ github.ref_name }} amd64 |