Skip to content

v1.0.X-vendor

v1.0.X-vendor #142

Workflow file for this run

name: Intercept Binary Release
on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Fetch Tags
run: |
git fetch --tags -f
git describe --abbrev=0
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://x.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Make all release artifacts
run: make build-all
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Upload All artifacts
uses: meeDamian/[email protected]
with:
allow_override: "true"
draft: "true"
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.get_version.outputs.VERSION }}
body: >
Release ${{ steps.get_version.outputs.VERSION }}
gzip: "true"
files: >
release/intercept-darwin-amd64
release/intercept-darwin-amd64.sha256
release/intercept-darwin-arm64
release/intercept-darwin-arm64.sha256
release/intercept-linux-amd64
release/intercept-linux-amd64.sha256
release/intercept-linux-arm
release/intercept-linux-arm.sha256
release/intercept-linux-arm64
release/intercept-linux-arm64.sha256
release/intercept-windows-amd64.exe
release/intercept-windows-amd64.exe.sha256