Skip to content

Update README.md

Update README.md #36

Workflow file for this run

name: Makefile CI
on:
push:
tags:
- "v*"
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/setup-go@v4.0.0
with:
# Path to the go.mod or go.work file.
go-version-file: go.mod
- name: Build
run: make
- name: upload
uses: actions/upload-artifact@master
with:
name: binary
path: bin/squid-exporter
release:
runs-on: ubuntu-latest
steps:
- name: Download binaries for release
uses: actions/download-artifact@v3
with:
name: binary
path: bin
- name: Release latest version
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: squid-exporter
file: bin/squid-exporter
tag: unstable
overwrite: true
body: "pre-release"
prerelease: true
- name: Release tag version
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/squid-exporter
asset_name: squid-exporter
tag: ${{ github.ref }}
overwrite: true
body: "Stable release"
needs: [build]