4141
4242 - uses : Swatinem/rust-cache@v2
4343 with :
44- key : ${{ matrix.platform.rust_target }}
44+ shared- key : ${{ matrix.platform.rust_target }}
4545 workspaces : |
4646 src-tauri
4747
@@ -54,15 +54,15 @@ jobs:
5454 - name : install npm packages
5555 run : npm ci
5656
57- - uses : JonasKruckenberg/ tauri-build@v1.3.0
57+ - uses : qu1ck/action- tauri-build@5c69c9fdbb4231a738b4a668a2caddf6af45eab8
5858 id : tauri_build
5959 with :
6060 target : ${{ matrix.platform.rust_target }}
6161
6262 # The artifacts output can now be used to upload the artifacts
6363 - uses : actions/upload-artifact@v3
6464 with :
65- name : build ${{ matrix.platform.os }} ${{ matrix.platform.rust_target }}
65+ name : ${{ matrix.platform.rust_target }}
6666 path : " ${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n ') }}"
6767
6868 - name : pack webapp
@@ -71,11 +71,39 @@ jobs:
7171 id : pack-webapp
7272 run : |
7373 GIT_VERSION=`git describe --tags --always`
74- zip "trguing-web-$GIT_VERSION" ./* -x create\* -x \*.map
74+ zip "trguing-web-$GIT_VERSION.zip " ./* -x create\* -x \*.map
7575 echo "ZIPFILE=trguing-web-$GIT_VERSION.zip" >> $GITHUB_OUTPUT
7676
7777 - uses : actions/upload-artifact@v3
7878 if : matrix.platform.os == 'ubuntu-latest'
7979 with :
8080 name : build web
8181 path : " dist/${{ steps.pack-webapp.outputs.ZIPFILE }}"
82+
83+ publish :
84+ needs : build-binaries
85+ if : startsWith(github.ref, 'refs/tags/')
86+ runs-on : ubuntu-latest
87+ permissions :
88+ contents : write
89+ steps :
90+ - uses : actions/checkout@v3
91+ # Download the previously uploaded artifacts
92+ - uses : actions/download-artifact@v3
93+ id : download
94+ with :
95+ path : artifacts
96+ - name : Rename mac app archives
97+ run : |
98+ mv artifacts/x86_64-apple-darwin/TrguiNG.app.tar.gz artifacts/x86_64-apple-darwin/TrguiNG_x86_64.app.tar.gz
99+ mv artifacts/aarch64-apple-darwin/TrguiNG.app.tar.gz artifacts/aarch64-apple-darwin/TrguiNG_aarch64.app.tar.gz
100+ - name : Downloaded artifacts
101+ run : ls -lhR artifacts/
102+ # And create a release with the artifacts attached
103+ - name : ' create release'
104+ uses : softprops/action-gh-release@v0.1.15
105+ env :
106+ GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
107+ with :
108+ draft : true
109+ files : ./artifacts/**/*
0 commit comments