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/*
91+ # target/${{ matrix.platform.target }}/release/dweb-darwin-arm64
6292
6393 build-dweb-app :
6494 strategy :
6595 fail-fast : false
6696 matrix :
6797 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'
98+ - platform : ubuntu-22.04
7799 args : ' '
78- target : ' x86_64-unknown-linux-gnu'
79- os_name : ' linux'
80- - platform : ' windows-latest'
100+ target : x86_64-unknown-linux-gnu
101+ cli-bin : dweb-linux-amd64
102+ os_name : linux
103+ - platform : windows-latest
81104 args : ' '
82- target : ' x86_64-pc-windows-msvc'
83- os_name : ' windows'
105+ target : x86_64-pc-windows-msvc
106+ cli-bin : dweb-amd64.exe
107+ os_name : windows
108+ - platform : macos-latest
109+ args : --target x86_64-apple-darwin
110+ target : x86_64-apple-darwin
111+ cli-bin : dweb-darwin-amd64
112+ os_name : macos-intel
113+ - platform : macos-latest
114+ args : --target aarch64-apple-darwin
115+ target : aarch64-apple-darwin
116+ os_name : macos-silicon
84117
85118 runs-on : ${{ matrix.platform }}
86119 steps :
@@ -153,7 +186,7 @@ jobs:
153186 with :
154187 name : ${{ matrix.os_name }}-${{ matrix.target }}
155188 path : |
156- dweb-app/src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg
189+ dweb-app/src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg
157190
158191 - name : Upload artifacts (Linux)
159192 if : startsWith(matrix.platform, 'ubuntu')
@@ -173,7 +206,7 @@ jobs:
173206 dweb-app/src-tauri/target/release/*.exe
174207
175208 release :
176- needs : [build-dweb-app, build-dweb-cli ]
209+ needs : [ build-dweb-cli, build-dweb-app ]
177210 runs-on : ubuntu-latest
178211 permissions :
179212 contents : write
@@ -201,6 +234,11 @@ jobs:
201234 # Create release directory
202235 mkdir -p release-assets
203236
237+ # #### Tauri App
238+ # # Windows EXE
239+ # mkdir -p release-assets/dweb-app_${VERSION}_windows-x86_64-pc-windows-msvc
240+ find artifacts/windows-x86_64-pc-windows-msvc -name "*.exe" -exec cp {} release-assets/dweb-app.exe \;
241+
204242 # macOS Intel DMG
205243 find artifacts/macos-intel-x86_64-apple-darwin -name "*.dmg" -exec cp {} release-assets/dweb-app_${VERSION}_macos-x86_64-apple-darwin.dmg \;
206244
@@ -213,8 +251,18 @@ jobs:
213251 # Linux Deb
214252 find artifacts/linux-x86_64-unknown-linux-gnu -name "*.deb" -exec cp {} release-assets/dweb-app_${VERSION}_linux-x86_64-unknown-linux-gnu.deb \;
215253
254+ #### dweb-cli
216255 # 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 \;
256+ find artifacts/windows-dweb-cli-x86_64-pc-windows-msvc -name "*.exe" -exec cp {} release-assets/dweb.exe \;
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+ find artifacts/linux-dweb-cli-x86_64-unknown-linux-gnu -name "dweb" -exec cp {} release-assets/dweb \;
218266
219267 # List final assets
220268 echo "Release assets created:"
@@ -224,37 +272,44 @@ jobs:
224272 id : create_release
225273 uses : softprops/action-gh-release@v2
226274 with :
227- tag_name : app-v${{ steps.get_version.outputs.VERSION }}
275+ # tag_name: dweb- app-v${{ steps.get_version.outputs.VERSION }}
228276 name : dweb App v${{ steps.get_version.outputs.VERSION }}
229277 body : |
230- Download Autonomi dweb for your platform:
278+
279+ # EXPERIMENTAL - DO NOT DOWNLOAD
280+
281+ # Download the Autonomi dweb App for your platform:
282+
283+ github.ref_name: ${{ github.ref_name }}
284+
285+ # This section is bollocks - look at the assets.
231286
232287 ## 🍎 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)
288+ - **Intel**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg)
289+ - **Apple Silicon**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg)
235290
236291 ## 🐧 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)
292+ - **x64 AppImage**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.AppImage)
293+ - **x64 Debian Package**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb)
239294
240295 ## 🪟 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)
296+ - **x64 Executable**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe)
242297
243- Download Autonomi dweb-cli for your platform:
298+ Download the dweb command (CLI) for your platform:
244299
245300 ## 🍎 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)
301+ - **Intel**: [`dweb-cli_ ${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb-cli_ ${{ steps.get_version.outputs.VERSION }}_macos-x86_64-apple-darwin.dmg)
302+ - **Apple Silicon**: [`dweb-cli_ ${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb-cli_ ${{ steps.get_version.outputs.VERSION }}_macos-aarch64-apple-darwin.dmg)
248303
249304 ## 🐧 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)
305+ - **x64 Executable**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_linux-x86_64-unknown-linux-gnu.deb`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb)
252306
253307 ## 🪟 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
308+ - **x64 Executable**: [`dweb-app_${{ steps.get_version.outputs.VERSION }}_windows-x86_64-pc-windows-msvc.exe`](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/dweb.exe)
309+ draft : false
256310 prerelease : false
257311 files : |
258312 release-assets/*
259313 env :
260- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
314+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
315+
0 commit comments