@setoelkahfi / svara / commits / 02f3223

chore(workflow): updated workflow to make release build

mellbacon committed Nov 3, 2023 at 20:21 UTC 02f3223690afd5b441fcd6c1134fb13953cf7ac2
1 file changed +47 -1
.github/workflows/main.yml
+47 -1
@@ -1,4 +1,4 @@
1 -name: "Nightly Build (master)"
1 +name: "Build"
2 on:
3 push:
4 branches:
@@ -84,3 +84,49 @@ jobs:
84 prerelease: true
85 includeDebug: true
86 includeRelease: false
87 + publish-tauri:
88 + strategy:
89 + fail-fast: false
90 + matrix:
91 + platform: [windows-latest]
92 +
93 + runs-on: ${{ matrix.platform }}
94 + steps:
95 + - name: Checkout repository
96 + uses: actions/checkout@v3
97 +
98 + - name: Rust setup
99 + uses: dtolnay/rust-toolchain@stable
100 +
101 + - name: Rust cache
102 + uses: swatinem/rust-cache@v2
103 + with:
104 + workspaces: './src-tauri -> target'
105 +
106 + - name: setup node
107 + uses: actions/setup-node@v3
108 + with:
109 + node-version: 'lts/*'
110 + cache: 'yarn'
111 +
112 + - name: Install frontend dependencies
113 + run: yarn install
114 +
115 + - name: Build the app
116 + uses: tauri-apps/tauri-action@v0
117 + env:
118 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119 + with:
120 + tagName: v__VERSION__-alpha # the action automatically replaces \_\_VERSION\_\_ with the app version
121 + releaseName: "Nucleus v__VERSION__-alpha"
122 + releaseBody: |
123 + Please refer to [the contribution guidelines](https://github.com/mellobacon/Nucleus/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports.
124 +
125 + ### *Will have bugs/missing/incomplete features.*
126 +
127 + ## What's Changed
128 + -
129 + releaseDraft: true
130 + prerelease: true
131 + includeDebug: false
132 + includeRelease: true
\ No newline at end of file