forked from teslamotors/fleet-telemetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Demers
committed
May 2, 2024
1 parent
be065fb
commit ce5f1d9
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Attach Assets to Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
env: | ||
CGO_ENABLED: 1 | ||
|
||
jobs: | ||
name: Release Go Binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up protoc | ||
run: | | ||
wget https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip | ||
unzip protoc-25.1-linux-x86_64.zip | ||
sudo mv bin/protoc /usr/local/bin/protoc | ||
sudo mv include/* /usr/local/include/ | ||
- name: install pkg-config | ||
run: sudo apt-get install pkg-config | ||
- name: Install protoc-gen-go | ||
run: go install google.golang.org/protobuf/cmd/[email protected] | ||
- uses: thatisuday/[email protected] | ||
with: | ||
platforms: 'linux/amd64, linux/arm64' | ||
package: "cmd/main" | ||
name: "fleet-telemetry" | ||
dest: 'dest' |