@@ -59,14 +59,45 @@ jobs:
59
59
run : |
60
60
pnpm install
61
61
62
+ # - name: Setup SSH debugging session
63
+ # uses: mxschmitt/action-tmate@v3
64
+
65
+ - name : Test
66
+ if : " !contains(github.event.head_commit.message, '[skip ci test]')"
67
+ run : |
68
+ pnpm run test
69
+ continue-on-error : ${{ contains(matrix.os, 'ubuntu-18.04') }}
70
+
62
71
# Create self-contained executable that bundles Nodejs
63
72
- name : Create Executable
64
73
if : " contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12')"
65
74
run : |
66
75
pnpm run pack.exe
67
76
68
- # Draft the release
69
- - if : ${{ (github.event_name == 'tag') && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
77
+ - name : Upload Artifacts
78
+ if : ${{ (github.event_name == 'tag') && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
79
+ uses : actions/upload-artifact@v3
80
+ with :
81
+ path : |
82
+ ./exe
83
+ ./dist
84
+ retention-days : 1
85
+
86
+ Release :
87
+ needs : Test
88
+ if : ${{ (github.event_name == 'release') }}
89
+ runs-on : ubuntu-22.04
90
+ steps :
91
+ - name : Download Artifacts
92
+ uses : actions/download-artifact@v3
93
+
94
+ - name : Place Artifacts
95
+ run : |
96
+ mv -v artifact/* ./
97
+ mv -v artifact/.[^.]* ./
98
+ chmod +x -R ./exe/
99
+
100
+ - name : Draft the release
70
101
uses : meeDamian/github-release@2.0
71
102
with :
72
103
token : ${{ secrets.GITHUB_TOKEN }}
@@ -81,15 +112,6 @@ jobs:
81
112
./dist/node12/
82
113
./dist/node16/
83
114
84
- # - name: Setup SSH debugging session
85
- # uses: mxschmitt/action-tmate@v3
86
-
87
- - name : Test
88
- if : " !contains(github.event.head_commit.message, '[skip ci test]')"
89
- run : |
90
- pnpm run test
91
- continue-on-error : ${{ contains(matrix.os, 'ubuntu-18.04') }}
92
-
93
115
Docker :
94
116
if : ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip docker]') }}
95
117
runs-on : ${{ matrix.os }}
0 commit comments