8000 add `create-release` step · arduino/clang-static-binaries@dc63da7 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit dc63da7

Browse files
committed
add create-release step
1 parent a5ada30 commit dc63da7

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Release
22

3+
env:
4+
DIST_DIR: dist
5+
36
on:
47
push:
58
tags:
@@ -145,5 +148,26 @@ jobs:
145148
with:
146149
name: clang-${{ matrix.config.name }}-${{ matrix.config.arch }}
147150
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 }}/*

0 commit comments

Comments
 (0)
0