Files
prometheus_exporters/.gitea/workflows/build.yml
tchivert 6acf069bf3
build / build (push) Failing after 21s
test release
2023-07-18 15:34:23 +02:00

28 lines
594 B
YAML

name: build
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: git clone https://github.com/jonnenauha/prometheus_varnish_exporter varnish
- name: Setup go
uses: https://github.com/actions/setup-go@v4
- 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_exporter
api_key: '${{secrets.RELEASE_TOKEN}}'