File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
+ env :
4
+ DIST_DIR : dist
5
+
3
6
on :
4
7
push :
5
8
tags :
@@ -145,5 +148,26 @@ jobs:
145
148
with :
146
149
name : clang-${{ matrix.config.name }}-${{ matrix.config.arch }}
147
150
path : |
148
- ${{ env.RELEASE }}/build/bin/clangd*
149
- ${{ env.RELEASE }}/build/bin/clang-format*
151
+ ${{ needs.get-version.outputs.llvm-version }}/build/bin/clangd*
152
+ ${{ needs.get-version.outputs.llvm-version }}/build/bin/clang-format*
153
+
154
+ create-release :
155
+ runs-on : ubuntu-latest
156
+ needs :
157
+ - build-linux
158
+ - build-win-mac
159
+
160
+ steps :
161
+ - name : Download artifact
162
+ uses : actions/download-artifact@v2
163
+ with :
164
+ path : ${{ env.DIST_DIR }}
165
+
166
+ - name : Create Github Release and upload artifacts
167
+ uses : ncipollo/release-action@v1
168
+ with :
169
+ token : ${{ secrets.GITHUB_TOKEN }}
170
+ draft : false
171
+ # NOTE: "Artifact is a directory" warnings are expected and don't indicate a problem
172
+ # (all the files we need are in the DIST_DIR root)
173
+ artifacts : ${{ env.DIST_DIR }}/*
You can’t perform that action at this time.
0 commit comments