update demo image in Readme #7
This file contains hidden or 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: Tip (Nightly) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-macos: | |
| runs-on: macos-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: './src-tauri -> target' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build frontend | |
| run: npm run build | |
| - name: Build Tauri app | |
| run: npm run tauri:build | |
| - name: Get short SHA | |
| id: sha | |
| run: echo "short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: Update tip release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: tip | |
| name: 'Snipp Tip ("Nightly")' | |
| prerelease: true | |
| body: | | |
| This tip release is automatically built on every commit to main. | |
| **Warning: This is a nightly build, not a tagged release.** | |
| Built from commit: ${{ github.sha }} | |
| files: | | |
| src-tauri/target/release/bundle/dmg/*.dmg | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |