Skip to content

Commit

Permalink
attach assets to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Demers committed May 2, 2024
1 parent be065fb commit ce5f1d9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
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'

0 comments on commit ce5f1d9

Please sign in to comment.