prometheus-jitsi-meet-exporter/.github/workflows/release.yaml

44 lines
977 B
YAML
Raw Normal View History

2020-03-21 21:09:15 +01:00
name: Release
on:
push:
tags:
- '*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
2020-03-21 21:09:15 +01:00
with:
2022-02-20 12:32:34 +01:00
go-version: '1.17.x'
- name: Cache Go Dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Login to Docker Hub
uses: docker/login-action@v1.14.1
2020-03-21 21:09:15 +01:00
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Releases
uses: goreleaser/goreleaser-action@v2.9.1
2020-03-21 21:09:15 +01:00
with:
version: latest
args: release --rm-dist
2020-03-21 22:30:41 +01:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}