Skip to content

Commit c4b7f06

Browse files
authored
Merge pull request #66 from maidsafe/development
fix: add target architecture and upload artifacts to release workflow
2 parents ee025ed + d427cdf commit c4b7f06

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ jobs:
1515
include:
1616
- platform: 'macos-latest'
1717
args: '--target x86_64-apple-darwin'
18+
target: 'x86_64-apple-darwin'
1819
- platform: 'ubuntu-22.04'
1920
args: ''
21+
target: 'x86_64-unknown-linux-gnu'
2022
- platform: 'windows-latest'
2123
args: ''
24+
target: 'x86_64-pc-windows-msvc'
2225

2326
runs-on: ${{ matrix.platform }}
2427
steps:
@@ -51,12 +54,40 @@ jobs:
5154
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
5255
with:
5356
tagName: app-v__VERSION__
54-
releaseName: 'App v__VERSION__'
57+
releaseName: 'Dave v__VERSION__'
5558
releaseBody: 'See the assets to download this version and install.'
5659
releaseDraft: false
5760
prerelease: false
5861
args: ${{ matrix.args }}
5962

63+
- name: Upload artifacts (macOS)
64+
if: matrix.platform == 'macos-latest'
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: macos-${{ matrix.target }}
68+
path: |
69+
src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg
70+
src-tauri/target/${{ matrix.target }}/release/bundle/macos/*.app
71+
72+
- name: Upload artifacts (Linux)
73+
if: startsWith(matrix.platform, 'ubuntu')
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: linux-${{ matrix.target }}
77+
path: |
78+
src-tauri/target/release/bundle/deb/*.deb
79+
src-tauri/target/release/bundle/appimage/*.AppImage
80+
81+
- name: Upload artifacts (Windows)
82+
if: matrix.platform == 'windows-latest'
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: windows-${{ matrix.target }}
86+
path: |
87+
src-tauri/target/release/bundle/msi/*.msi
88+
src-tauri/target/release/bundle/nsis/*.exe
89+
src-tauri/target/release/*.exe
90+
6091
- name: Process macOS build
6192
if: matrix.platform == 'macos-latest'
6293
run: |
@@ -76,4 +107,4 @@ jobs:
76107
fi
77108
78109
# Remove quarantine attributes
79-
find ./src-tauri/target/*/release/bundle -name "*.app" -o -name "*.dmg" -exec xattr -rd com.apple.quarantine {} \;
110+
find ./src-tauri/target/*/release/bundle -name "*.app" -o -name "*.dmg" -exec xattr -rd com.apple.quarantine {} \;

0 commit comments

Comments
 (0)