chore(workflow): attempting to fix workflows
Nightly builds should no longer be a release Updated workflow to make releases on push to release branch instead of master
mellbacon committed
Jun 29, 2023 at 14:04 UTC
e51d355c390db25f95ec4fc1f69ae8402625f786
2 files changed
+39
-36
.github/workflows/main.yml
+5
-11
@@ -5,7 +5,7 @@ on:
5
- master
6
7
jobs:
8
- publish-tauri:
8
+ publish-nightly:
9
strategy:
10
fail-fast: false
11
matrix:
@@ -33,14 +33,8 @@ jobs:
33
- name: Install frontend dependencies
34
run: yarn install
35
36
- - name: Build the app
37
- uses: tauri-apps/tauri-action@v0
38
- env:
39
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
+ - name: Produce artifacts
37
+ uses: actions/upload-artifact@v3
38
with:
41
- tagName: "nightly"
42
- releaseName: "Nucleus v__VERSION__-nightly.${{github.run_number}}"
43
- releaseBody: "This build is made on every merge to master for testing purposes. This is not an official release by any means.\nPlease refer to [the contribution guidelines](https://github.com/mellobacon/Nucleus/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports.\n\n### *Will have bugs/missing/incomplete features. Best for testing. Not production ready. Use at own risk.*"
44
- releaseDraft: true
45
- prerelease: true
46
- includeDebug: true
39
+ name: "dist"
40
+ path: "dist/"
.github/workflows/publish.yml
+34
-25
@@ -13,28 +13,37 @@ jobs:
13
14
runs-on: ${{ matrix.platform }}
15
steps:
16
- - uses: actions/checkout@v2
17
- - name: setup node
18
- uses: actions/setup-node@v1
19
- with:
20
- node-version: '>=18.x'
21
- - name: install Rust stable
22
- uses: actions-rs/toolchain@v1
23
- with:
24
- toolchain: stable
25
- - name: install dependencies (ubuntu only)
26
- if: matrix.platform == 'ubuntu-20.04'
27
- run: |
28
- sudo apt-get update
29
- sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
30
- - name: install app dependencies and build it
31
- run: yarn && yarn build
32
- - uses: tauri-apps/tauri-action@v0
33
- env:
34
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
- with:
36
- tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
37
- releaseName: "App v__VERSION__"
38
- releaseBody: "See the assets to download this version and install."
39
- releaseDraft: true
40
- prerelease: false
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Rust setup
20
+ uses: dtolnay/rust-toolchain@stable
21
+
22
+ - name: Rust cache
23
+ uses: swatinem/rust-cache@v2
24
+ with:
25
+ workspaces: './src-tauri -> target'
26
+
27
+ - name: setup node
28
+ uses: actions/setup-node@v3
29
+ with:
30
+ node-version: 'lts/*'
31
+ cache: 'yarn'
32
+
33
+ - name: Install frontend dependencies
34
+ run: yarn install
35
+
36
+ - name: Build the app
37
+ uses: tauri-apps/tauri-action@v0
38
+ env:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+ with:
41
+ tagName: v__VERSION__-alpha # the action automatically replaces \_\_VERSION\_\_ with the app version
42
+ releaseName: "Nucleus v__VERSION__-alpha"
43
+ releaseBody: |
44
+ Please refer to [the contribution guidelines](https://github.com/mellobacon/Nucleus/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports.
45
+
46
+ ### *Will have bugs/missing/incomplete features.*
47
+ releaseDraft: true
48
+ prerelease: true
49
+ includeDebug: true