Skip to content

Commit c55c4f6

Browse files
committed
Finish release workflow
1 parent c223739 commit c55c4f6

File tree

2 files changed

+110
-9
lines changed

2 files changed

+110
-9
lines changed

.github/workflows/release.yml

+101
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,104 @@ jobs:
4848
do
4949
dotnet publish cyclonedx/cyclonedx.csproj -r $runtime /p:PublishSingleFile=true /p:IncludeNativeLibrariesInSingleFile=true --configuration Release --version-suffix $VERSION --output bin/$runtime
5050
done
51+
52+
- name: Create github release and git tag for release
53+
id: create_release
54+
uses: actions/create-release@v1
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
with:
58+
release_name: ${{ steps.create_binaries.outputs.version }}
59+
tag_name: v${{ steps.create_binaries.outputs.version }}
60+
draft: false
61+
prerelease: false
62+
63+
- name: Upload binary to github release
64+
uses: actions/upload-release-asset@v1
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
with:
68+
upload_url: ${{ steps.create_release.outputs.upload_url }}
69+
asset_path: bin/linux-x64/cyclonedx
70+
asset_name: cyclonedx-linux-x64
71+
asset_content_type: application/octet-stream
72+
73+
- name: Upload binary to github release
74+
uses: actions/upload-release-asset@v1
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
with:
78+
upload_url: ${{ steps.create_release.outputs.upload_url }}
79+
asset_path: bin/linux-musl-x64/cyclonedx
80+
asset_name: cyclonedx-linux-musl-x64
81+
asset_content_type: application/octet-stream
82+
83+
- name: Upload binary to github release
84+
uses: actions/upload-release-asset@v1
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
with:
88+
upload_url: ${{ steps.create_release.outputs.upload_url }}
89+
asset_path: bin/linux-arm/cyclonedx
90+
asset_name: cyclonedx-linux-arm
91+
asset_content_type: application/octet-stream
92+
93+
- name: Upload binary to github release
94+
uses: actions/upload-release-asset@v1
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
with:
98+
upload_url: ${{ steps.create_release.outputs.upload_url }}
99+
asset_path: bin/linux-arm64/cyclonedx
100+
asset_name: cyclonedx-linux-arm64
101+
asset_content_type: application/octet-stream
102+
103+
- name: Upload binary to github release
104+
uses: actions/upload-release-asset@v1
105+
env:
106+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107+
with:
108+
upload_url: ${{ steps.create_release.outputs.upload_url }}
109+
asset_path: bin/win-x64/cyclonedx.exe
110+
asset_name: cyclonedx-win-x64.exe
111+
asset_content_type: application/octet-stream
112+
113+
- name: Upload binary to github release
114+
uses: actions/upload-release-asset@v1
115+
env:
116+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117+
with:
118+
upload_url: ${{ steps.create_release.outputs.upload_url }}
119+
asset_path: bin/win-x86/cyclonedx.exe
120+
asset_name: cyclonedx-win-x86.exe
121+
asset_content_type: application/octet-stream
122+
123+
- name: Upload binary to github release
124+
uses: actions/upload-release-asset@v1
125+
env:
126+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127+
with:
128+
upload_url: ${{ steps.create_release.outputs.upload_url }}
129+
asset_path: bin/win-arm/cyclonedx.exe
130+
asset_name: cyclonedx-win-arm.exe
131+
asset_content_type: application/octet-stream
132+
133+
- name: Upload binary to github release
134+
uses: actions/upload-release-asset@v1
135+
env:
136+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137+
with:
138+
upload_url: ${{ steps.create_release.outputs.upload_url }}
139+
asset_path: bin/win-arm64/cyclonedx.exe
140+
asset_name: cyclonedx-win-arm64.exe
141+
asset_content_type: application/octet-stream
142+
143+
- name: Upload binary to github release
144+
uses: actions/upload-release-asset@v1
145+
env:
146+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147+
with:
148+
upload_url: ${{ steps.create_release.outputs.upload_url }}
149+
asset_path: bin/osx-x64/cyclonedx
150+
asset_name: cyclonedx-osx-x64
151+
asset_content_type: application/octet-stream

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ This is a preview version of the CycloneDX CLI tool.
66

77
Supported official builds are planned for these platforms:
88

9-
- Windows x64
10-
- Linux x64
11-
- Linux musl x64 (including Alpine Linux)
12-
- MacOS x64
9+
- Windows x64 (win-x64)
10+
- Linux x64 (linux-x64)
11+
- Linux musl x64 (linux-musl-x64, includes Alpine Linux)
12+
- MacOS x64 (osx-x64)
1313

1414
Unsupported official builds are planned for these platforms:
1515

16-
- Windows x86
17-
- Windows ARM
18-
- Windows ARM x64
19-
- Linux ARM
20-
- Linux ARM x64
16+
- Windows x86 (win-x86)
17+
- Windows ARM (win-arm)
18+
- Windows ARM x64 (win-arm64)
19+
- Linux ARM (linux-arm)
20+
- Linux ARM x64 (linux-arm64)

0 commit comments

Comments
 (0)