Skip to content

Merge pull request #109 from RickyDane/bug/file_management #231

Merge pull request #109 from RickyDane/bug/file_management

Merge pull request #109 from RickyDane/bug/file_management #231

Workflow file for this run

name: 'publish'
on:
push:
branches:
- master
- premaster
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
settings:
#- platform: 'macos-latest' # for Arm based macs (M1 and above).
#args: '--target aarch64-apple-darwin'
#- platform: 'macos-latest' # for Intel based macs.
#args: '--target x86_64-apple-darwin'
- platform: 'macos-latest'
args: '--target universal-apple-darwin'
- platform: 'ubuntu-20.04' # for Tauri v2: ubuntu-22.04.
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.settings.platform }}
steps:
- uses: actions/checkout@v4
- name: install dependencies (ubuntu only)
if: matrix.settings.platform == 'ubuntu-20.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 for Tauri v1 - webkitgtk 4.1 for Tauri v2.
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.settings.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: CoDriver-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: 'CoDriver v__VERSION__'
releaseBody: '# Updates'
releaseDraft: true
prerelease: false
args: ${{ matrix.settings.args }}