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

43 lines
979 B
YAML
Raw Normal View History

2020-03-21 21:09:15 +01:00
name: Release
on:
release:
types: [published]
2020-03-21 21:09:15 +01:00
jobs:
release:
name: Release
2022-10-22 14:35:56 +02:00
runs-on: ubuntu-20.04
2020-03-21 21:09:15 +01:00
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
2020-03-21 21:09:15 +01:00
with:
2022-10-22 14:35:56 +02:00
go-version: "1.17.x"
- name: Cache Go Dependencies
uses: actions/cache@v4
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@v3.0.0
2020-03-21 21:09:15 +01:00
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Releases
uses: goreleaser/goreleaser-action@v5.0.0
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 }}