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 : List MacOS target/${{ matrix.platform.target }}/release/
85+ if : matrix.platform.os == 'macos-latest'
86+ run :
87+ ls -laR target/${{ matrix.platform.target }}/release/
88+
89+ - name : Upload artifacts (macOS)
90+ if : matrix.platform.os == 'macos-latest'
91+ uses : actions/upload-artifact@v4
92+ with :
93+ name : ${{ matrix.platform.os_name }}-dweb-cli-${{ matrix.platform.target }}
94+ path : |
95+ target/${{ matrix.platform.target }}/release/dweb
6296
6397 build-dweb-app :
6498 strategy :
6599 fail-fast : false
66100 matrix :
67101 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'
102+ - platform : ubuntu-22.04
77103 args : ' '
78- target : ' x86_64-unknown-linux-gnu'
79- os_name : ' linux'
80- - platform : ' windows-latest'
104+ target : x86_64-unknown-linux-gnu
105+ cli-bin : dweb-linux-amd64
106+ os_name : linux
107+ - platform : windows-latest
81108 args : ' '
82- target : ' x86_64-pc-windows-msvc'
83- os_name : ' windows'
109+ target : x86_64-pc-windows-msvc
110+ cli-bin : dweb-amd64.exe
111+ os_name : windows
112+ - platform : macos-latest
113+ args : --target x86_64-apple-darwin
114+ target : x86_64-apple-darwin
115+ cli-bin : dweb-darwin-amd64
116+ os_name : macos-intel
117+ - platform : macos-latest
118+ args : --target aarch64-apple-darwin
119+ target : aarch64-apple-darwin
120+ os_name : macos-silicon
84121
85122 runs-on : ${{ matrix.platform }}
86123 steps :
@@ -153,7 +190,7 @@ jobs:
153190 with :
154191 name : ${{ matrix.os_name }}-${{ matrix.target }}
155192 path : |
156- dweb-app/src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg
193+ dweb-app/src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg
157194
158195 - name : Upload artifacts (Linux)
159196 if : startsWith(matrix.platform, 'ubuntu')
@@ -173,7 +210,7 @@ jobs:
173210 dweb-app/src-tauri/target/release/*.exe
174211
175212 release :
176- needs : [build-dweb-app, build-dweb-cli ]
213+ needs : [ build-dweb-cli, build-dweb-app ]
177214 runs-on : ubuntu-latest
178215 permissions :
179216 contents : write
@@ -201,6 +238,11 @@ jobs:
201238 # Create release directory
202239 mkdir -p release-assets
203240
241+ # #### Tauri App
242+ # # Windows EXE
243+ # mkdir -p release-assets/dweb-app_${VERSION}_windows-x86_64-pc-windows-msvc
244+ find artifacts/windows-x86_64-pc-windows-msvc -name "*.exe" -exec cp {} release-assets/dweb-app.exe \;
245+
204246 # macOS Intel DMG
205247 find artifacts/macos-intel-x86_64-apple-darwin -name "*.dmg" -exec cp {} release-assets/dweb-app_${VERSION}_macos-x86_64-apple-darwin.dmg \;
206248
@@ -213,8 +255,18 @@ jobs:
213255 # Linux Deb
214256 find artifacts/linux-x86_64-unknown-linux-gnu -name "*.deb" -exec cp {} release-assets/dweb-app_${VERSION}_linux-x86_64-unknown-linux-gnu.deb \;
215257
258+ #### dweb-cli
216259 # 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 \;
260+ find artifacts/windows-dweb-cli-x86_64-pc-windows-msvc -name "*.exe" -exec cp {} release-assets/dweb.exe \;
261+
262+ # macOS Intel DMG
263+ find artifacts/macos-intel-dweb-cli-x86_64-apple-darwin -name "dweb" -exec cp {} release-assets/dweb-cli_${VERSION}_macos-x86_64-apple-darwin.dmg \;
264+
265+ # macOS Silicon DMG
266+ find artifacts/macos-silicon-dweb-cli-aarch64-apple-darwin -name "dweb" -exec cp {} release-assets/dweb-cli_${VERSION}_macos-aarch64-apple-darwin.dmg \;
267+
268+ # Linux Executable
269+ find artifacts/linux-dweb-cli-x86_64-unknown-linux-gnu -name "dweb" -exec cp {} release-assets/dweb \;
218270
219271 # List final assets
220272 echo "Release assets created:"
@@ -224,37 +276,44 @@ jobs:
224276 id : create_release
225277 uses : softprops/action-gh-release@v2
226278 with :
227- tag_name : app-v${{ steps.get_version.outputs.VERSION }}
279+ # tag_name: dweb- app-v${{ steps.get_version.outputs.VERSION }}
228280 name : dweb App v${{ steps.get_version.outputs.VERSION }}
229281 body : |
230- Download Autonomi dweb for your platform:
282+
283+ # EXPERIMENTAL - DO NOT DOWNLOAD
284+
285+ # Download the Autonomi dweb App for your platform:
286+
287+ github.ref_name: ${{ github.ref_name }}
288+
289+ # This section is bollocks - look at the assets.
231290
232291 ## 🍎 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)
292+ - **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)
293+ - **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)
235294
236295 ## 🐧 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)
296+ - **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)
297+ - **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)
239298
240299 ## 🪟 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)
300+ - **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)
242301
243- Download Autonomi dweb-cli for your platform:
302+ Download the dweb command (CLI) for your platform:
244303
245304 ## 🍎 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)
305+ - **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)
306+ - **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)
248307
249308 ## 🐧 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)
309+ - **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)
252310
253311 ## 🪟 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
312+ - **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)
313+ draft : false
256314 prerelease : false
257315 files : |
258316 release-assets/*
259317 env :
260- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
318+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
319+
0 commit comments