Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STAL-2746] Add git hooks release #475

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: datadog-static-analyzer-server,datadog-static-analyzer,datadog-export-rulesets
bin: datadog-static-analyzer
# (optional) On which platform to distribute the `.tar.gz` file.
# [default value: unix]
# [possible values: all, unix, windows, none]
Expand All @@ -69,6 +69,24 @@ jobs:
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
archive: 'datadog-static-analyzer-$target'
- name: Release datadog-static-analyzer-git-hook
uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: datadog-static-analyzer-git-hook
# (optional) On which platform to distribute the `.tar.gz` file.
# [default value: unix]
# [possible values: all, unix, windows, none]
tar: none
# (optional) On which platform to distribute the `.zip` file.
# [default value: windows]
# [possible values: all, unix, windows, none]
zip: all
target: ${{ matrix.target }}
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
archive: 'datadog-static-analyzer-git-hook-$target'
- name: Release the server
uses: taiki-e/upload-rust-binary-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ default-members = [
resolver = "2"

[workspace.package]
version = "0.3.9"
version = "0.4.0"

[profile.release]
lto = true
Expand Down
28 changes: 28 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
{
"0": {
"0.4.0": {
"cli": {
"windows": {
"x86_64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-x86_64-pc-windows-msvc.zip"
},
"linux": {
"x86_64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-x86_64-unknown-linux-gnu.zip",
"aarch64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-aarch64-unknown-linux-gnu.zip"
},
"macos": {
"x86_64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-x86_64-apple-darwin.zip",
"aarch64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-aarch64-apple-darwin.zip"
}
},
"server": {
"windows": {
"x86_64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-server-x86_64-pc-windows-msvc.zip"
},
"linux": {
"x86_64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-server-x86_64-unknown-linux-gnu.zip",
"aarch64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-server-aarch64-unknown-linux-gnu.zip"
},
"macos": {
"x86_64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-server-x86_64-apple-darwin.zip",
"aarch64": "https://github.com/DataDog/datadog-static-analyzer/releases/download/0.4.0/datadog-static-analyzer-server-aarch64-apple-darwin.zip"
}
}
},
"0.3.9": {
"cli": {
"windows": {
Expand Down
Loading