publish.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: 'publish'
  2. # This will trigger the action on each push to the `release` branch.
  3. on:
  4. push:
  5. branches:
  6. - release
  7. jobs:
  8. publish-tauri:
  9. permissions:
  10. contents: write
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. platform: [macos-latest, ubuntu-20.04, windows-latest]
  15. runs-on: ${{ matrix.platform }}
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: setup node
  19. uses: actions/setup-node@v4
  20. with:
  21. node-version: 20
  22. - name: install Rust stable
  23. uses: dtolnay/rust-toolchain@stable
  24. - name: install dependencies (ubuntu only)
  25. if: matrix.platform == 'ubuntu-20.04'
  26. run: |
  27. sudo apt-get update
  28. sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
  29. - name: install frontend dependencies
  30. run: npm install # change this to npm or pnpm depending on which one you use
  31. - uses: tauri-apps/tauri-action@v0
  32. env:
  33. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  34. with:
  35. tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
  36. releaseName: 'Amica v__VERSION__'
  37. releaseBody: |
  38. # Amica __VERSION__
  39. ## Download Notes
  40. * `.dmg` is for **macOS**
  41. * `.app.tar.gz` is for **macOS**
  42. * `.exe` is for **Windows**
  43. * `.msi` is for **Windows**
  44. * `.AppImage` is for any **Linux 64 bit**
  45. * * **Note**: Be sure to set this to executable to run it (`chmod +x`)
  46. * `.deb` is for Debian (or Ubuntu) distributions
  47. releaseDraft: true
  48. prerelease: false