Update android.yml #29
Workflow file for this run
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: 'publish' | |
| on: | |
| push: | |
| tags: | |
| - '*' # Only run on tag pushes. | |
| env: | |
| APP_NAME: "Chamber" | |
| jobs: | |
| changelog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build changelog | |
| id: build_changelog | |
| run: | | |
| # NOTE: if commits subjects are standardized, you can filter the git log based on feat: and fix: | |
| # and then replace "feat:" with "New: " and "fix:" with "Fixed " | |
| # when AI gets good, we can also summarized commits into a bullet point list | |
| PREV_TAG=$(git tag --list v* | tail -n2 | head -n1) | |
| echo "changelog=$(git log $PREV_TAG...${{ github.ref_name }} --pretty=format:"- %s")" >> $GITHUB_OUTPUT | |
| outputs: | |
| changelog: ${{ steps.build_changelog.outputs.changelog }} | |
| release: | |
| environment: production | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # -----------------Mac build is working -- not needed for now ------------ | |
| # - 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' | |
| # -----------------Linux build Not working ------------------------------- | |
| # - platform: 'ubuntu-22.04' # build is failing for some reason, so disabled for now. need to debug in linux os. | |
| # args: '' | |
| #-------------------Windows----------------------------------------------- | |
| - platform: 'windows-latest' | |
| args: '' | |
| runs-on: ${{ matrix.platform }} | |
| needs: [changelog] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | |
| - name: install dependencies (ubuntu only) | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
| - name: install frontend dependencies | |
| run: yarn install | |
| - name: Build Tauri app | |
| uses: tauri-apps/tauri-action@v0 | |
| # only runs because trigger is restricted to tags | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | |
| with: | |
| tagName: ${{ github.ref_name }} | |
| releaseName: "${{ env.APP_NAME }} v__VERSION__" | |
| releaseBody: | | |
| ${{needs.changelog.outputs.changelog}} | |
| See the assets to download this version and install. | |
| releaseDraft: true | |
| prerelease: false | |
| args: ${{ matrix.args }} |