Merge pull request #152 from tomlin7/welcome-tab #83
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: "Build" | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish-nightly: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './src-tauri -> target' | |
- name: setup node | |
uses: actions/setup-node@main | |
with: | |
node-version: 'lts/*' | |
cache: 'yarn' | |
- name: Install frontend dependencies | |
run: yarn install | |
- name: Build app | |
run: yarn tauri build | |
- name: Produce artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "nucleus-nightly.${{github.run_number}}" | |
path: "dist/" | |
attempt-test-build: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './src-tauri -> target' | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
cache: 'yarn' | |
- name: Install frontend dependencies | |
run: yarn install | |
- name: Build the app | |
uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tagName: v__VERSION__-test # the action automatically replaces \_\_VERSION\_\_ with the app version | |
releaseName: "Nucleus v__VERSION__-test" | |
releaseBody: | | |
Please refer to [the contribution guidelines](https://github.com/mellobacon/Nucleus/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports. | |
### *TEST BUILD NOT PRODUCTION READY* | |
releaseDraft: true | |
prerelease: true | |
includeDebug: true | |
includeRelease: false | |
publish-tauri: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './src-tauri -> target' | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
cache: 'yarn' | |
- name: Install frontend dependencies | |
run: yarn install | |
- name: Build the app | |
uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tagName: v__VERSION__-alpha # the action automatically replaces \_\_VERSION\_\_ with the app version | |
releaseName: "Nucleus v__VERSION__-alpha" | |
releaseBody: | | |
Please refer to [the contribution guidelines](https://github.com/mellobacon/Nucleus/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports. | |
### *Will have bugs/missing/incomplete features.* | |
## What's Changed | |
- | |
releaseDraft: true | |
prerelease: true | |
includeDebug: false | |
includeRelease: true |