Skip to content

Commit

Permalink
Merge pull request #475 from DataDog/juli1/release-git-hooks
Browse files Browse the repository at this point in the history
Add git hooks release
  • Loading branch information
juli1 authored Jul 30, 2024
2 parents f787ff6 + 3ecbbb5 commit 4014dd6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
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

0 comments on commit 4014dd6

Please sign in to comment.