Skip to content

Commit c21cee3

Browse files
authored
upload to artifact instead of releases in tauri release ci (#5219)
* upload to artifact instead of releases in tauri release ci * debug * try it again * try again * try again * Update build-tauri-release.yml * Update .github/workflows/build-tauri-release.yml
1 parent 4ba8caa commit c21cee3

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/build-tauri-release.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,25 @@ jobs:
5858
with:
5959
projectPath: packages/target-tauri
6060
args: ${{ matrix.args }}
61-
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
62-
releaseName: 'v__VERSION__'
63-
releaseDraft: true
64-
prerelease: false
61+
62+
- name: log paths
63+
run: |
64+
echo ${{ steps.build.outputs.artifactPaths }}
65+
66+
- name: convert paths
67+
run: |
68+
node -e '
69+
import fs from "fs";
70+
const files = ${{ steps.build.outputs.artifactPaths }}.join("\n");
71+
fs.appendFile(process.env.GITHUB_ENV,`UPLOAD_PATHS<<EOF\n${files}\nEOF`, err => {
72+
if (err){
73+
console.error("Error appending to GitHub Actions environment file:", err);
74+
process.exit(1)
75+
}
76+
});
77+
'
78+
79+
- uses: actions/upload-artifact@v4
80+
with:
81+
name: releases-${{ matrix.platform }}-${{ matrix.label }}
82+
path: ${{ env.UPLOAD_PATHS }}

0 commit comments

Comments
 (0)