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

ci(release): 👷 GH workflow for release #146

Merged
merged 4 commits into from
Jun 18, 2023
Merged
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
39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: release

on:
push:
tags:
- v[0].[0-9]+.[0-9]+

jobs:
upload-release-assets:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install cross-compilation tools
run: |
set -ex
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools
- name: Build artifacts for arm64/amd64
run: make build-all
- name: Create checksums and tarballs
run: |
set -ex
echo "Creating checksums and tarballs"
cd .build/linux-amd64
sha256sum signoz-collector > signoz-collector-linux-amd64.sha256
tar -czvf signoz-collector-linux-amd64.tar.gz signoz-collector
cd ../linux-arm64
sha256sum signoz-collector > signoz-collector-linux-arm64.sha256
tar -czvf signoz-collector-linux-arm64.tar.gz signoz-collector
- name: Create release and upload assets
uses: softprops/action-gh-release@v1
with:
files: |
.build/linux-amd64/signoz-collector-linux-amd64.sha256
.build/linux-amd64/signoz-collector-linux-amd64.tar.gz
.build/linux-arm64/signoz-collector-linux-arm64.sha256
.build/linux-arm64/signoz-collector-linux-arm64.tar.gz
generate_release_notes: true