Files
prometheus_exporters/.gitea/workflows/build.yml
tchivert 41390dab00
build / build (push) Successful in 33s
cleanup
2023-07-18 18:26:42 +02:00

30 lines
621 B
YAML

name: build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: git clone https://github.com/jonnenauha/prometheus_varnish_exporter varnish
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
- name: Build
run: go build -o varnish_exporter
working-directory: varnish
- name: Create release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
varnish/varnish_exporter
api_key: '${{secrets.RELEASE_TOKEN}}'