@setoelkahfi / svara / commits / 754635e

chore(workflow): added test build on push to master

these builds will not be accessed publicly and instead are used to test before release

mellbacon committed Aug 23, 2023 at 15:12 UTC 754635eda6487e204691f88bf7761ed0302ea4bd
1 file changed +43
.github/workflows/main.yml
+43
@@ -41,3 +41,46 @@ jobs:
41 with:
42 name: "nucleus-nightly.${{github.run_number}}"
43 path: "dist/"
44 + attempt-test-build:
45 + strategy:
46 + fail-fast: false
47 + matrix:
48 + platform: [windows-latest]
49 +
50 + runs-on: ${{ matrix.platform }}
51 + steps:
52 + - name: Checkout repository
53 + uses: actions/checkout@v3
54 +
55 + - name: Rust setup
56 + uses: dtolnay/rust-toolchain@stable
57 +
58 + - name: Rust cache
59 + uses: swatinem/rust-cache@v2
60 + with:
61 + workspaces: './src-tauri -> target'
62 +
63 + - name: setup node
64 + uses: actions/setup-node@v3
65 + with:
66 + node-version: 'lts/*'
67 + cache: 'yarn'
68 +
69 + - name: Install frontend dependencies
70 + run: yarn install
71 +
72 + - name: Build the app
73 + uses: tauri-apps/tauri-action@v0
74 + env:
75 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76 + with:
77 + tagName: v__VERSION__-test # the action automatically replaces \_\_VERSION\_\_ with the app version
78 + releaseName: "Nucleus v__VERSION__-test"
79 + releaseBody: |
80 + Please refer to [the contribution guidelines](https://github.com/mellobacon/Nucleus/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports.
81 +
82 + ### *TEST BUILD NOT PRODUCTION READY*
83 + releaseDraft: true
84 + prerelease: true
85 + includeDebug: true
86 + includeRelease: false