crowdsec/.github/workflows/release_publish-package.yml

49 lines
1.3 KiB
YAML
Raw Normal View History

2020-05-15 09:41:18 +00:00
# .github/workflows/build-docker-image.yml
name: build
2020-05-15 09:41:18 +00:00
on:
2020-05-15 09:41:18 +00:00
release:
types: prereleased
jobs:
build:
2020-05-15 09:41:18 +00:00
name: Build and upload binary package
runs-on: ubuntu-latest
steps:
2022-08-26 11:31:49 +00:00
- name: Set up Go 1.19
uses: actions/setup-go@v3
2020-05-15 09:41:18 +00:00
with:
2022-08-26 11:31:49 +00:00
go-version: 1.19
2020-05-15 09:41:18 +00:00
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
2020-05-15 09:41:18 +00:00
- name: Build the binaries
run: make release
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: crowdsec-release.tgz application/x-gzip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_static:
name: Build and upload binary package
runs-on: ubuntu-latest
steps:
2022-08-26 11:31:49 +00:00
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
2022-08-26 11:31:49 +00:00
go-version: 1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build the binaries
run: |
make release BUILD_STATIC=yes
2022-11-24 09:29:17 +00:00
mv crowdsec-release.tgz crowdsec-release-static.tgz
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
args: crowdsec-release-static.tgz application/x-gzip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}