11name : " publish dweb-app-daved"
22
33on :
4- workflow_dispatch :
5- release :
6- types : [ created ]
4+ push :
5+ tags :
6+ - " *v*.*.*"
7+ branches :
8+ main
9+ ci-testing
10+
11+ # on:
12+ # workflow_dispatch:
13+ # release:
14+ # types: [ created ]
715
816jobs :
917 build-dweb-cli :
10- name : ${{ matrix.platform.os_name }} with rust ${{ matrix.toolchain }}
1118 runs-on : ${{ matrix.platform.os }}
1219 strategy :
1320 fail-fast : false
1421 matrix :
1522 platform :
16- # - os_name: Linux-aarch64
17- # os: ubuntu-24.04
18- # target: aarch64-unknown-linux-musl
19- # bin: dweb-linux-arm64
20- - os_name : Linux-x86_64
21- os : ubuntu-24.04
23+ - os : ubuntu-22.04
2224 target : x86_64-unknown-linux-gnu
23- bin : dweb-linux-amd64
24- - os_name : Windows-x86_64
25- os : windows-latest
25+ os_name : linux
26+ - os : windows-latest
2627 target : x86_64-pc-windows-msvc
27- bin : dweb-amd64.exe
28- - os_name : macOS-x86_64
29- os : macOS-latest
28+ os_name : windows
29+ - os : macos-latest
3030 target : x86_64-apple-darwin
31- bin : dweb-darwin-amd64
32- - os_name : macOS-aarch64
33- os : macOS-latest
31+ os_name : macos-intel
32+ - os : macos-latest
3433 target : aarch64-apple-darwin
35- bin : dweb-darwin-arm64
34+ os_name : macos-silicon
35+
3636 toolchain :
3737 - stable
38+
3839 steps :
3940 - uses : actions/checkout@v3
40- - name : Build dweb-cli
41+ - name : Build dweb-cli for
4142 uses : houseabsolute/actions-rust-cross@v0
4243 with :
43- command : " build"
44+ command : build
4445 target : ${{ matrix.platform.target }}
4546 toolchain : ${{ matrix.toolchain }}
46- args : " --locked --release"
47+ args : --locked --release
4748 strip : true
48- - name : Rename binary (linux and macos)
49- run : mv target/${{ matrix.platform.target }}/release/dweb target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
50- if : matrix.platform.os_name != 'Windows-x86_64'
51- - name : Rename binary (windows)
52- run : mv target/${{ matrix.platform.target }}/release/dweb.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
53- if : matrix.platform.os_name == 'Windows-x86_64'
54- - name : Generate SHA-256
55- run : shasum -a 256 target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} | cut -d ' ' -f 1 > target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256
56- - name : Release binary and SHA-256 checksum to GitHub
57- uses : softprops/action-gh-release@v1
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ # - name: Rename binary (linux and macos)
52+ # run: mv target/${{ matrix.platform.target }}/release/dweb target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}
53+ # if: matrix.platform.os_name != 'windows'
54+ # - name: Rename binary (windows)
55+ # run: mv target/${{ matrix.platform.target }}/release/dweb.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}
56+ # if: matrix.platform.os_name == 'windows'
57+ # - name: Generate SHA-256
58+ # run: shasum -a 256 target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }} | cut -d ' ' -f 1 > target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}.sha256
59+ # - name: Tag with v0.1.0 (TODO undo hack for gh-releases@v1)
60+ # run: git tag v0.1.0 && git tag --list
61+ # - name: Release binary and SHA-256 checksum to GitHub
62+ # uses: softprops/action-gh-release@v1
63+ # with:
64+ # files: |
65+ # target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}
66+ # target/${{ matrix.platform.target }}/release/${{ matrix.platform.cli-bin }}.sha256
67+
68+ - name : Upload artifacts (Linux)
69+ if : matrix.platform.os == 'ubuntu-22.04'
70+ uses : actions/upload-artifact@v4
5871 with :
59- files : |
60- target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
61- target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256
72+ name : ${{ matrix.platform.os_name }}-dweb-cli-${{ matrix.platform.target }}
73+ path : |
74+ target/${{ matrix.platform.target }}/release/dweb
75+
76+ - name : Upload artifacts (Windows)
77+ if : matrix.platform.os == 'windows-latest'
78+ uses : actions/upload-artifact@v4
79+ with :
80+ name : ${{ matrix.platform.os_name }}-dweb-cli-${{ matrix.platform.target }}
81+ path : |
82+ target/${{ matrix.platform.target }}/release/*.exe
83+
84+ - name : Upload artifacts (macOS)
85+ if : matrix.platform.os == 'macos-latest'
86+ uses : actions/upload-artifact@v4
87+ with :
88+ name : ${{ matrix.platform.os_name }}-dweb-cli-${{ matrix.platform.target }}
89+ path : |
90+ target/${{ matrix.platform.target }}/release/dweb-darwin-arm64
6291
6392 build-dweb-app :
6493 strategy :
6594 fail-fast : false
6695 matrix :
6796 include :
68- - platform : ' macos-latest'
69- args : ' --target x86_64-apple-darwin'
70- target : ' x86_64-apple-darwin'
71- os_name : ' macos-intel'
72- - platform : ' macos-latest'
73- args : ' --target aarch64-apple-darwin'
74- target : ' aarch64-apple-darwin'
75- os_name : ' macos-silicon'
76- - platform : ' ubuntu-22.04'
97+ - platform : ubuntu-22.04
7798 args : ' '
78- target : ' x86_64-unknown-linux-gnu'
79- os_name : ' linux'
80- - platform : ' windows-latest'
99+ target : x86_64-unknown-linux-gnu
100+ cli-bin : dweb-linux-amd64
101+ os_name : linux
102+ - platform : windows-latest
81103 args : ' '
82- target : ' x86_64-pc-windows-msvc'
83- os_name : ' windows'
104+ target : x86_64-pc-windows-msvc
105+ cli-bin : dweb-amd64.exe
106+ os_name : windows
107+ - platform : macos-latest
108+ args : --target x86_64-apple-darwin
109+ target : x86_64-apple-darwin
110+ cli-bin : dweb-darwin-amd64
111+ os_name : macos-intel
112+ - platform : macos-latest
113+ args : --target aarch64-apple-darwin
114+ target : aarch64-apple-darwin
115+ os_name : macos-silicon
84116
85117 runs-on : ${{ matrix.platform }}
86118 steps :
@@ -173,7 +205,7 @@ jobs:
173205 dweb-app/src-tauri/target/release/*.exe
174206
175207 release :
176- needs : [build-dweb-app, build-dweb-cli ]
208+ needs : [ build-dweb-cli, build-dweb-app ]
177209 runs-on : ubuntu-latest
178210 permissions :
179211 contents : write
@@ -201,6 +233,11 @@ jobs:
201233 # Create release directory
202234 mkdir -p release-assets
203235
236+ # #### Tauri App
237+ # # Windows EXE
238+ # mkdir -p release-assets/dweb-app_${VERSION}_windows-x86_64-pc-windows-msvc
239+ # find artifacts/windows-x86_64-pc-windows-msvc -name "*.exe" -exec cp {} release-assets/dweb-app_${VERSION}_windows-x86_64-pc-windows-msvc/dweb-app.exe \;
240+
204241 # macOS Intel DMG
205242 find artifacts/macos-intel-x86_64-apple-darwin -name "*.dmg" -exec cp {} release-assets/dweb-app_${VERSION}_macos-x86_64-apple-darwin.dmg \;
206243
@@ -213,8 +250,20 @@ jobs:
213250 # Linux Deb
214251 find artifacts/linux-x86_64-unknown-linux-gnu -name "*.deb" -exec cp {} release-assets/dweb-app_${VERSION}_linux-x86_64-unknown-linux-gnu.deb \;
215252
253+ #### dweb-cli
216254 # Windows EXE
217- find artifacts/windows-x86_64-pc-windows-msvc -name "*.exe" -exec cp {} release-assets/dweb-app_${VERSION}_windows-x86_64-pc-windows-msvc.exe \;
255+ mkdir -p release-assets/dweb-cli_${VERSION}_windows-x86_64-pc-windows-msvc
256+ find artifacts/windows-dweb-cli-x86_64-pc-windows-msvc -name "*.exe" -exec cp {} release-assets/dweb-cli_${VERSION}_windows-x86_64-pc-windows-msvc \;
257+
258+ # macOS Intel DMG
259+ find artifacts/macos-intel-dweb-cli-x86_64-apple-darwin -name "*.dmg" -exec cp {} release-assets/dweb-cli_${VERSION}_macos-x86_64-apple-darwin.dmg \;
260+
261+ # macOS Silicon DMG
262+ find artifacts/macos-silicon-dweb-cli-aarch64-apple-darwin -name "*.dmg" -exec cp {} release-assets/dweb-cli_${VERSION}_macos-aarch64-apple-darwin.dmg \;
263+
264+ # Linux Executable
265+ mkdir -p release-assets/dweb-cli_${VERSION}_linux-x86_64-unknown-linux-gnu
266+ find artifacts/linux-dweb-cli-x86_64-unknown-linux-gnu -name "dweb" -exec cp {} release-assets/dweb-cli_${VERSION}_linux-x86_64-unknown-linux-gnu \;
218267
219268 # List final assets
220269 echo "Release assets created:"
@@ -224,37 +273,42 @@ jobs:
224273 id : create_release
225274 uses : softprops/action-gh-release@v2
226275 with :
227- tag_name : app-v${{ steps.get_version.outputs.VERSION }}
276+ # tag_name: dweb- app-v${{ steps.get_version.outputs.VERSION }}
228277 name : dweb App v${{ steps.get_version.outputs.VERSION }}
229278 body : |
230- Download Autonomi dweb for your platform:
279+ # Download the Autonomi dweb App for your platform:
280+
281+ github.ref_name: ${{ github.ref_name }}
282+
283+ # This section is bollocks - look at the assets.
231284
232285 ## 🍎 macOS
233- - **Intel**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg)
234- - **Apple Silicon**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg)
286+ - **Intel**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg)
287+ - **Apple Silicon**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg)
235288
236289 ## 🐧 Linux
237- - **x64 AppImage**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage)
238- - **x64 Debian Package**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb)
290+ - **x64 AppImage**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage)
291+ - **x64 Debian Package**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb)
239292
240293 ## 🪟 Windows
241- - **x64 Executable**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe)
294+ - **x64 Executable**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe)
242295
243- Download Autonomi dweb-cli for your platform:
296+ Download the dweb-cli for your platform:
244297
245298 ## 🍎 macOS
246- - **Intel**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg)
247- - **Apple Silicon**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg)
299+ - **Intel**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg)
300+ - **Apple Silicon**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg)
248301
249302 ## 🐧 Linux
250- - **x64 AppImage**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage)
251- - **x64 Debian Package**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb)
303+ - **x64 AppImage**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage)
304+ - **x64 Debian Package**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb)
252305
253306 ## 🪟 Windows
254- - **x64 Executable**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe`](https://github.com/${{ github.repository }}/releases/download/app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe)
255- draft : true
307+ - **x64 Executable**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe`](https://github.com/${{ github.repository }}/releases/download/dweb- app-v${{ steps.get_version.outputs.VERSION }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe)
308+ draft : false
256309 prerelease : false
257310 files : |
258311 release-assets/*
259312 env :
260- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
313+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
314+
0 commit comments